mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix unique_user_filter_index schema update
This commit is contained in:
parent
ae0b78cb1f
commit
c8e6c308c6
@ -24,8 +24,8 @@ def run_upgrade(cur, database_engine, *args, **kwargs):
|
||||
DROP INDEX user_filters_by_user_id_filter_id;
|
||||
DELETE FROM user_filters;
|
||||
ALTER TABLE user_filters
|
||||
ALTER COLUMN user_id SET NOT NULL
|
||||
ALTER COLUMN filter_id SET NOT NULL
|
||||
ALTER COLUMN user_id SET NOT NULL,
|
||||
ALTER COLUMN filter_id SET NOT NULL,
|
||||
ALTER COLUMN filter_json SET NOT NULL;
|
||||
INSERT INTO user_filters(user_id, filter_id, filter_json)
|
||||
SELECT * FROM user_filters_migration;
|
||||
|
Loading…
Reference in New Issue
Block a user