summary refs log tree commit diff
path: root/synapse/storage/push_rule.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-10 10:50:51 +0100
committerErik Johnston <erik@matrix.org>2015-05-10 10:50:51 +0100
commit22d2f498fa6004e36cc15a56919a751ad14dbfaf (patch)
treef265bc38d185e3ab2283e63a2eb4a8584be97a54 /synapse/storage/push_rule.py
parenttypo (diff)
downloadsynapse-22d2f498fa6004e36cc15a56919a751ad14dbfaf.tar.xz
Fix push rule bug: can't insert bool into small int column
Diffstat (limited to 'synapse/storage/push_rule.py')
-rw-r--r--synapse/storage/push_rule.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/push_rule.py b/synapse/storage/push_rule.py
index ee7718d5ed..da23c1a114 100644
--- a/synapse/storage/push_rule.py
+++ b/synapse/storage/push_rule.py
@@ -211,7 +211,7 @@ class PushRuleStore(SQLBaseStore):
         yield self._simple_upsert(
             PushRuleEnableTable.table_name,
             {'user_name': user_name, 'rule_id': rule_id},
-            {'enabled': enabled},
+            {'enabled': 1 if enabled else 0},
             desc="set_push_rule_enabled",
         )