Skip to content
Snippets Groups Projects
Commit b2757655 authored by Erik Johnston's avatar Erik Johnston
Browse files

Comment about weird SQL

parent 0c1a27b7
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,9 @@
/* 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 (
SELECT room_id FROM room_aliases
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment