-
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.
feat: add Waste and Manufacturing to Sector table
- Loading branch information
1 parent
99b9d3d
commit b3b2e89
Showing
3 changed files
with
23 additions
and
9 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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
-- Deploy cif:tables/sector_001 to pg | ||
|
||
BEGIN; | ||
begin; | ||
|
||
-- XXX Add DDLs here. | ||
insert into cif.sector (sector_name) | ||
values | ||
('Waste'), | ||
('Manufacturing'); | ||
|
||
COMMIT; | ||
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
-- Revert cif:tables/sector_001 from pg | ||
|
||
BEGIN; | ||
begin; | ||
|
||
-- XXX Add DDLs here. | ||
delete from cif.sector where sector_name = 'Waste'; | ||
delete from cif.sector where sector_name = 'Manufacturing'; | ||
|
||
COMMIT; | ||
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 |
---|---|---|
@@ -1,7 +1,17 @@ | ||
-- Verify cif:tables/sector_001 on pg | ||
|
||
BEGIN; | ||
begin; | ||
|
||
-- XXX Add verifications here. | ||
select pg_catalog.has_table_privilege('cif.sector', 'select'); | ||
|
||
ROLLBACK; | ||
-- cif_internal Grants | ||
select cif_private.verify_grant('select', 'sector', 'cif_internal'); | ||
select cif_private.verify_grant('update', 'sector', 'cif_internal'); | ||
select cif_private.verify_grant('insert', 'sector', 'cif_internal'); | ||
|
||
-- cif_admin Grants | ||
select cif_private.verify_grant('select', 'sector', 'cif_admin'); | ||
select cif_private.verify_grant('insert', 'sector', 'cif_admin'); | ||
select cif_private.verify_grant('update', 'sector', 'cif_admin'); | ||
|
||
rollback; |