-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: changing unused column type to allow db version migration
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
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,8 @@ | ||
-- Deploy cif:tables/form_002 to pg | ||
|
||
begin; | ||
|
||
alter table cif.form | ||
alter column json_schema_generator type varchar(10000); | ||
|
||
commit; |
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,8 @@ | ||
-- Revert cif:tables/form_002 from pg | ||
|
||
begin; | ||
|
||
-- No reverting json_schema_generator back to regprocedure. Cannot change varchar back to regprocedure without error. | ||
-- Table will be dropped in original revert file. | ||
|
||
commit; |
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 |
---|---|---|
|
@@ -378,3 +378,5 @@ mutations/commit_form_change [mutations/[email protected]] 2023-11-22T19 | |
tables/funding_stream_rfp_002 2024-05-28T22:41:57Z Brianna Cerkiewicz <briannacerkiewicz@pop-os> # Add 2024 funding streams values to funding_stream_rfp table | ||
@1.17.1 2024-06-03T23:17:40Z Pierre Bastianelli <[email protected]> # release v1.17.1 | ||
@1.17.2 2024-08-08T20:46:52Z Sepehr Sobhani <[email protected]> # release v1.17.2 | ||
|
||
tables/form_002 [tables/form_001] 2024-12-13T19:25:15Z Pierre Bastianelli <[email protected]> # dropping regprocedure type for column in favour of varchar to allow postgres version upgrade |
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 @@ | ||
-- Verify cif:tables/form_002 on pg | ||
|
||
begin; | ||
|
||
-- Assess that the table exists with the right privileges | ||
|
||
select pg_catalog.has_table_privilege('cif.form', 'select'); | ||
|
||
-- cif_internal Grants | ||
select cif_private.verify_grant('select', 'form', 'cif_internal'); | ||
|
||
-- cif_admin Grants | ||
select cif_private.verify_grant('select', 'form', 'cif_admin'); | ||
|
||
rollback; |