From 074fa37e197be18360e8aaa70e83c2ac91634862 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 22 Jan 2024 11:38:27 +0100 Subject: [PATCH] sql fmt --- migrations/2024-01-15-100133_local-only-community/down.sql | 4 +++- migrations/2024-01-15-100133_local-only-community/up.sql | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/migrations/2024-01-15-100133_local-only-community/down.sql b/migrations/2024-01-15-100133_local-only-community/down.sql index e246b19b11..c3d1413d53 100644 --- a/migrations/2024-01-15-100133_local-only-community/down.sql +++ b/migrations/2024-01-15-100133_local-only-community/down.sql @@ -1,3 +1,5 @@ ALTER TABLE community DROP COLUMN visibility; -drop type community_visibility; + +DROP TYPE community_visibility; + diff --git a/migrations/2024-01-15-100133_local-only-community/up.sql b/migrations/2024-01-15-100133_local-only-community/up.sql index 6174d3ab40..88315c3716 100644 --- a/migrations/2024-01-15-100133_local-only-community/up.sql +++ b/migrations/2024-01-15-100133_local-only-community/up.sql @@ -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';