Remove redundant 'primary key'

This commit is contained in:
Mark Haines 2017-09-19 16:38:21 +01:00
parent 21d61e4112
commit 8903043a0d

View file

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