-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
985 additions
and
119 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...xt_aware_config/migrations/2024-11-06-123105_add_description_and_comment_columns/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ALTER TABLE public.config_versions DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.config_versions DROP COLUMN IF EXISTS change_reason; | ||
|
||
ALTER TABLE public.functions ALTER COLUMN description DROP NOT NULL; | ||
ALTER TABLE public.functions ALTER COLUMN description DROP DEFAULT; | ||
ALTER TABLE public.functions DROP COLUMN IF EXISTS change_reason; | ||
|
||
ALTER TABLE public.functions RENAME COLUMN description TO function_description; | ||
|
||
ALTER TABLE public.type_templates DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.type_templates DROP COLUMN IF EXISTS change_reason; | ||
|
||
ALTER TABLE public.default_configs DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.default_configs DROP COLUMN IF EXISTS change_reason; | ||
|
||
ALTER TABLE public.dimensions DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.dimensions DROP COLUMN IF EXISTS change_reason; | ||
|
||
ALTER TABLE public.contexts DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.contexts DROP COLUMN IF EXISTS change_reason; |
21 changes: 21 additions & 0 deletions
21
...text_aware_config/migrations/2024-11-06-123105_add_description_and_comment_columns/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
ALTER TABLE public.contexts ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.contexts ADD COLUMN IF NOT EXISTS change_reason TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.dimensions ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.dimensions ADD COLUMN IF NOT EXISTS change_reason TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.default_configs ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.default_configs ADD COLUMN IF NOT EXISTS change_reason TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.type_templates ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.type_templates ADD COLUMN IF NOT EXISTS change_reason TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.functions RENAME COLUMN function_description TO description; | ||
ALTER TABLE public.functions ADD COLUMN IF NOT EXISTS change_reason TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.functions ALTER COLUMN description SET DEFAULT ''; | ||
ALTER TABLE public.functions ALTER COLUMN description SET NOT NULL; | ||
|
||
ALTER TABLE public.config_versions ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.config_versions ADD COLUMN IF NOT EXISTS change_reason TEXT DEFAULT '' NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.