-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added description and comment columns in all existing tables an…
…d apis
- Loading branch information
Showing
43 changed files
with
350 additions
and
91 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...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,15 @@ | ||
ALTER TABLE public.functions ALTER COLUMN description DROP NOT NULL; | ||
ALTER TABLE public.functions ALTER COLUMN description DROP DEFAULT; | ||
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 comment; | ||
|
||
ALTER TABLE public.default_configs DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.default_configs DROP COLUMN IF EXISTS comment; | ||
|
||
ALTER TABLE public.dimensions DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.dimensions DROP COLUMN IF EXISTS comment; | ||
|
||
ALTER TABLE public.contexts DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.contexts DROP COLUMN IF EXISTS comment; |
20 changes: 20 additions & 0 deletions
20
...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,20 @@ | ||
|
||
ALTER TABLE public.contexts ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.contexts ADD COLUMN IF NOT EXISTS comment TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.contexts ADD COLUMN IF NOT EXISTS description TEXT DEFAULT '' NOT NULL; | ||
ALTER TABLE public.contexts ADD COLUMN IF NOT EXISTS comment 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 comment 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 comment 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 comment TEXT DEFAULT '' NOT NULL; | ||
|
||
ALTER TABLE public.functions RENAME COLUMN function_description TO description; | ||
|
||
ALTER TABLE public.functions ALTER COLUMN description SET DEFAULT ''; | ||
ALTER TABLE public.functions ALTER COLUMN description SET 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
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
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
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
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
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
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
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
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
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
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.