Fix push rule bug: can't insert bool into small int column

This commit is contained in:
Erik Johnston 2015-05-10 10:50:51 +01:00
parent d79ffa1898
commit 22d2f498fa
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class PushRuleStore(SQLBaseStore):
yield self._simple_upsert( yield self._simple_upsert(
PushRuleEnableTable.table_name, PushRuleEnableTable.table_name,
{'user_name': user_name, 'rule_id': rule_id}, {'user_name': user_name, 'rule_id': rule_id},
{'enabled': enabled}, {'enabled': 1 if enabled else 0},
desc="set_push_rule_enabled", desc="set_push_rule_enabled",
) )