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) );