Skip to content

Commit

Permalink
sql fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Jan 22, 2024
1 parent 8d70cc4 commit 074fa37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion migrations/2024-01-15-100133_local-only-community/down.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ALTER TABLE community
DROP COLUMN visibility;
drop type community_visibility;

DROP TYPE community_visibility;

6 changes: 5 additions & 1 deletion migrations/2024-01-15-100133_local-only-community/up.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
create type community_visibility as enum ('public', 'local-only');
CREATE TYPE community_visibility AS enum (
'public',
'local-only'
);

ALTER TABLE community
ADD COLUMN visibility community_visibility NOT NULL DEFAULT 'public';

0 comments on commit 074fa37

Please sign in to comment.