Awful hack to get default true

pull/4/merge
Luke Barnard 7 years ago
parent e86cefcb6f
commit 713e60b9b6
  1. 3
      synapse/storage/schema/delta/46/group_server.sql

@ -14,4 +14,5 @@
*/
-- whether non-members can access group APIs
ALTER TABLE groups ADD COLUMN is_public BOOL DEFAULT 1 NOT NULL;
-- NB: awful hack to get the default to be true on postgres and 1 on sqlite
ALTER TABLE groups ADD COLUMN is_public BOOL DEFAULT (1=1) NOT NULL;

Loading…
Cancel
Save