Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Awful hack to get default true
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Barnard committed Oct 26, 2017
1 parent e86cefc commit 713e60b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/storage/schema/delta/46/group_server.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 713e60b

Please sign in to comment.