From 890bfb415aec397e2e7a57fa597d3a6aa9ea7ae3 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Thu, 24 Aug 2023 15:12:24 -0700 Subject: [PATCH] stop writing to column `user_id` of table `user_filters` --- synapse/storage/databases/main/filtering.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/synapse/storage/databases/main/filtering.py b/synapse/storage/databases/main/filtering.py index 047de6283a..c79c2b1738 100644 --- a/synapse/storage/databases/main/filtering.py +++ b/synapse/storage/databases/main/filtering.py @@ -187,14 +187,13 @@ class FilteringWorkerStore(SQLBaseStore): filter_id = max_id + 1 sql = ( - "INSERT INTO user_filters (full_user_id, user_id, filter_id, filter_json)" - "VALUES(?, ?, ?, ?)" + "INSERT INTO user_filters (full_user_id, filter_id, filter_json)" + "VALUES(?, ?, ?)" ) txn.execute( sql, ( user_id.to_string(), - user_id.localpart, filter_id, bytearray(def_json), ),