mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 07:39:40 -05:00
Comment about weird SQL
This commit is contained in:
parent
0c1a27b787
commit
b275765545
@ -15,7 +15,9 @@
|
|||||||
|
|
||||||
|
|
||||||
/* This release removes the restriction that published rooms must have an alias,
|
/* 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.*/
|
* so we go back and ensure the only 'public' rooms are ones with an alias.
|
||||||
|
* We use (1 = 0) and (1 = 1) so that it works in both postgres and sqlite
|
||||||
|
*/
|
||||||
UPDATE rooms SET is_public = (1 = 0) WHERE is_public = (1 = 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
|
SELECT room_id FROM room_aliases
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user