-
Notifications
You must be signed in to change notification settings - Fork 26
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
5 changed files
with
26 additions
and
5 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 +1 @@ | ||
0.2.2dev | ||
0.2.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
-- Ajout contrainte sur la table des objets de permission | ||
-- Devrait être dans GN2 | ||
-- TODO supprimer ces deux lignes une fois présentes dans GN2 | ||
ALTER TABLE gn_permissions.t_objects DROP CONSTRAINT IF EXISTS unique_t_objects; | ||
ALTER TABLE gn_permissions.t_objects ADD CONSTRAINT unique_t_objects UNIQUE (code_object); | ||
|
||
|
||
INSERT INTO gn_permissions.t_objects (code_object, description_object) | ||
VALUES | ||
('GNM_SITES', 'Permissions sur les sites'), | ||
('GNM_VISITES', 'Permissions sur les visites'), | ||
('GNM_OBSERVATIONS', 'Permissions sur les observation'), | ||
('GNM_GRP_SITES', 'Permissions sur les groupes de sites') | ||
ON CONFLICT(code_object) DO NOTHING; | ||
; |
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