From 0c1a27b7877c08643ced4bdabe9843d69b0bcea1 Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Wed, 23 Mar 2016 14:10:49 +0000
Subject: SQLite and postgres doesn't share a true literal

---
 synapse/storage/schema/delta/30/public_rooms.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'synapse/storage/schema/delta/30/public_rooms.sql')

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
 );
-- 
cgit 1.5.1

