mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 20:22:22 +00:00
Merge pull request #6175 from matrix-org/babolivier/fix_unique_user_filter_index
Fix unique_user_filter_index schema update
This commit is contained in:
commit
97e2722723
1
changelog.d/6175.bugfix
Normal file
1
changelog.d/6175.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix syntax error in unique_user_filter_index schema update.
|
@ -24,8 +24,8 @@ def run_upgrade(cur, database_engine, *args, **kwargs):
|
|||||||
DROP INDEX user_filters_by_user_id_filter_id;
|
DROP INDEX user_filters_by_user_id_filter_id;
|
||||||
DELETE FROM user_filters;
|
DELETE FROM user_filters;
|
||||||
ALTER TABLE user_filters
|
ALTER TABLE user_filters
|
||||||
ALTER COLUMN user_id SET NOT NULL
|
ALTER COLUMN user_id SET NOT NULL,
|
||||||
ALTER COLUMN filter_id SET NOT NULL
|
ALTER COLUMN filter_id SET NOT NULL,
|
||||||
ALTER COLUMN filter_json SET NOT NULL;
|
ALTER COLUMN filter_json SET NOT NULL;
|
||||||
INSERT INTO user_filters(user_id, filter_id, filter_json)
|
INSERT INTO user_filters(user_id, filter_id, filter_json)
|
||||||
SELECT * FROM user_filters_migration;
|
SELECT * FROM user_filters_migration;
|
||||||
|
Loading…
Reference in New Issue
Block a user