From 82d5616e6be02460dd9584b64b7d39f87a01546e Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Thu, 15 Jun 2023 17:19:12 -0700 Subject: [PATCH] grasping at straws --- .../main/delta/79/01_drop_user_id_constraint_profiles.py | 3 +-- .../main/delta/79/02_drop_user_id_constraint_user_filters.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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)