diff --git a/synapse/storage/schema/main/delta/79/01_drop_user_id_constraint_profiles.py b/synapse/storage/schema/main/delta/79/01_drop_user_id_constraint_profiles.py index 3541266f7db4..2b3aea97c4d1 100644 --- a/synapse/storage/schema/main/delta/79/01_drop_user_id_constraint_profiles.py +++ b/synapse/storage/schema/main/delta/79/01_drop_user_id_constraint_profiles.py @@ -23,8 +23,7 @@ def run_create(cur: LoggingTransaction, database_engine: BaseDatabaseEngine) -> user_id text, displayname text, avatar_url text, - UNIQUE (full_user_id), - UNIQUE (user_id) + UNIQUE (full_user_id) ) """ cur.execute(create_sql) diff --git a/synapse/storage/schema/main/delta/79/02_drop_user_id_constraint_user_filters.py b/synapse/storage/schema/main/delta/79/02_drop_user_id_constraint_user_filters.py index 0c959effcb5f..2d46b05fed0e 100644 --- a/synapse/storage/schema/main/delta/79/02_drop_user_id_constraint_user_filters.py +++ b/synapse/storage/schema/main/delta/79/02_drop_user_id_constraint_user_filters.py @@ -23,8 +23,7 @@ def run_create(cur: LoggingTransaction, database_engine: BaseDatabaseEngine) -> user_id text, filter_id bigint NOT NULL, filter_json bytea NOT NULL, - UNIQUE (full_user_id), - UNIQUE (user_id) + UNIQUE (full_user_id) ) """ cur.execute(create_sql)