From 8903043a0d5e8e05cc1c8e051ab4a5e79981ef50 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 19 Sep 2017 16:38:21 +0100 Subject: [PATCH] Remove redundant 'primary key' --- .../matrix-org/dendrite/syncapi/storage/account_data_table.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/syncapi/storage/account_data_table.go b/src/github.com/matrix-org/dendrite/syncapi/storage/account_data_table.go index a9b5e3167..981722e56 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/storage/account_data_table.go +++ b/src/github.com/matrix-org/dendrite/syncapi/storage/account_data_table.go @@ -38,8 +38,6 @@ CREATE TABLE IF NOT EXISTS syncapi_account_data_type ( -- Type of the data type TEXT NOT NULL, - PRIMARY KEY(user_id, room_id, type), - -- We don't want two entries of the same type for the same user CONSTRAINT syncapi_account_data_unique UNIQUE (user_id, room_id, type) );