diff options
author | Luke Barnard <lukeb@openmarket.com> | 2017-10-26 17:38:14 +0100 |
---|---|---|
committer | Luke Barnard <lukeb@openmarket.com> | 2017-10-26 17:38:14 +0100 |
commit | 713e60b9b6658d611b399d80a6ae429946713689 (patch) | |
tree | d30606ef4aaadf5eeaac4a5fa0e4a4f226e0196c /synapse/storage/schema/delta | |
parent | Add groups table to BOOLEAN_COLUMNS in synapse_port_db (diff) | |
download | synapse-713e60b9b6658d611b399d80a6ae429946713689.tar.xz |
Awful hack to get default true
Diffstat (limited to 'synapse/storage/schema/delta')
-rw-r--r-- | synapse/storage/schema/delta/46/group_server.sql | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/schema/delta/46/group_server.sql b/synapse/storage/schema/delta/46/group_server.sql index 23ee1194d3..a892cff7e5 100644 --- a/synapse/storage/schema/delta/46/group_server.sql +++ b/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; |