summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-23 14:10:49 +0000
committerErik Johnston <erik@matrix.org>2016-03-23 14:10:49 +0000
commit0c1a27b7877c08643ced4bdabe9843d69b0bcea1 (patch)
treec74cfe2835ee445807be42bce4905af771dd557b /synapse/storage/schema
parentEnsure all old public rooms have aliases (diff)
downloadsynapse-0c1a27b7877c08643ced4bdabe9843d69b0bcea1.tar.xz
SQLite and postgres doesn't share a true literal
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/30/public_rooms.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/30/public_rooms.sql b/synapse/storage/schema/delta/30/public_rooms.sql
index a48604faa8..3400898ed0 100644
--- a/synapse/storage/schema/delta/30/public_rooms.sql
+++ b/synapse/storage/schema/delta/30/public_rooms.sql
@@ -16,6 +16,6 @@
 
 /* This release removes the restriction that published rooms must have an alias,
  * so we go back and ensure the only 'public' rooms are ones with an alias.*/
-UPDATE rooms SET is_public = 0 WHERE is_public = 1 AND room_id not in (
+UPDATE rooms SET is_public = (1 = 0) WHERE is_public = (1 = 1) AND room_id not in (
     SELECT room_id FROM room_aliases
 );