From 732cf72b861c99492b240a21e4539a3c40474596 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 17 Aug 2016 18:12:21 +0100 Subject: [PATCH] Fix push_display_name_rename schema update --- synapse/storage/schema/delta/34/push_display_name_rename.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/storage/schema/delta/34/push_display_name_rename.sql b/synapse/storage/schema/delta/34/push_display_name_rename.sql index 51d9f82393..0d9fe1a99a 100644 --- a/synapse/storage/schema/delta/34/push_display_name_rename.sql +++ b/synapse/storage/schema/delta/34/push_display_name_rename.sql @@ -13,5 +13,8 @@ * limitations under the License. */ +DELETE FROM push_rules WHERE rule_id = 'global/override/.m.rule.contains_display_name'; UPDATE push_rules SET rule_id = 'global/override/.m.rule.contains_display_name' WHERE rule_id = 'global/underride/.m.rule.contains_display_name'; + +DELETE FROM push_rules_enable WHERE rule_id = 'global/override/.m.rule.contains_display_name'; UPDATE push_rules_enable SET rule_id = 'global/override/.m.rule.contains_display_name' WHERE rule_id = 'global/underride/.m.rule.contains_display_name';