-
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
17 changed files
with
180 additions
and
18 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...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,19 @@ | ||
-- This file should undo anything in `up.sql` | ||
-- contexts table | ||
ALTER TABLE public.contexts DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.contexts DROP COLUMN IF EXISTS comment; | ||
|
||
-- dimensions table | ||
ALTER TABLE public.dimensions DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.dimensions DROP COLUMN IF EXISTS comment; | ||
|
||
-- default_configs table | ||
ALTER TABLE public.default_configs DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.default_configs DROP COLUMN IF EXISTS comment; | ||
|
||
-- type_templates table | ||
ALTER TABLE public.type_templates DROP COLUMN IF EXISTS description; | ||
ALTER TABLE public.type_templates DROP COLUMN IF EXISTS comment; | ||
|
||
-- Revert column rename from description back to function_description | ||
ALTER TABLE public.functions RENAME COLUMN description TO function_description; |
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 @@ | ||
-- contexts table | ||
ALTER TABLE public.contexts ADD COLUMN description TEXT; | ||
ALTER TABLE public.contexts ADD COLUMN comment TEXT; | ||
|
||
-- dimensions table | ||
ALTER TABLE public.dimensions ADD COLUMN description TEXT; | ||
ALTER TABLE public.dimensions ADD COLUMN comment TEXT; | ||
|
||
-- default_configs table | ||
ALTER TABLE public.default_configs ADD COLUMN description TEXT; | ||
ALTER TABLE public.default_configs ADD COLUMN comment TEXT; | ||
|
||
-- type_templates table | ||
ALTER TABLE public.type_templates ADD COLUMN description TEXT; | ||
ALTER TABLE public.type_templates ADD COLUMN comment TEXT; | ||
|
||
-- functions table | ||
-- Rename function_description to description | ||
ALTER TABLE public.functions RENAME COLUMN function_description TO description; | ||
|
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.