Skip to content

Commit 712f81a

Browse files
committed
add missing migrations
1 parent 598f103 commit 712f81a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
BEGIN;
2+
3+
ALTER TABLE groups
4+
DROP COLUMN display_name;
5+
6+
COMMIT;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
BEGIN;
2+
3+
ALTER TABLE groups
4+
ADD COLUMN display_name TEXT NOT NULL DEFAULT '';
5+
6+
COMMENT ON COLUMN groups.display_name IS 'Display name is a custom, human-friendly group name that user can set. This is not required to be unique.';
7+
8+
-- Use the name as the display name for all existing groups
9+
UPDATE groups SET display_name = name;
10+
11+
COMMIT;

0 commit comments

Comments
 (0)