Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 5dc6f2f

Browse files
committed
Add migration for online_sessions flag
1 parent 6f35191 commit 5dc6f2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
DO $$
2+
BEGIN
3+
BEGIN
4+
ALTER TABLE cd_dojos ADD COLUMN online_sessions smallint NOT NULL DEFAULT 0;
5+
EXCEPTION
6+
WHEN duplicate_column THEN RAISE NOTICE 'column online_sessions already exists in cd_dojos.';
7+
END;
8+
END;
9+
$$

0 commit comments

Comments
 (0)