-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from MTES-MCT/rapportage-v1.2
Rapportage v1.2
- Loading branch information
Showing
37 changed files
with
327 additions
and
338 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
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
9 changes: 9 additions & 0 deletions
9
backend/src/main/resources/db/migration/internal/V0.048__fix_control_themes.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,9 @@ | ||
ALTER TABLE IF EXISTS public.control_topics | ||
RENAME TO control_themes; | ||
ALTER TABLE public.control_themes RENAME COLUMN topic_level_1 TO theme_level_1; | ||
ALTER TABLE public.control_themes RENAME COLUMN topic_level_2 TO theme_level_2; | ||
ALTER SEQUENCE IF EXISTS public.control_topics_id_seq RENAME TO control_themes_id_seq; | ||
|
||
UPDATE public.control_themes | ||
SET theme_level_1 = 'Activités et manifestations soumises à évaluation d’incidence Natura 2000' | ||
WHERE theme_level_1 ilike 'Activités et manifestations soumises à évaluation d’incidence Natura%'; |
6 changes: 6 additions & 0 deletions
6
...end/src/main/resources/db/migration/internal/V0.049__constraints_on_control_resources.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,6 @@ | ||
TRUNCATE public.control_resources; | ||
ALTER TABLE public.control_resources ALTER COLUMN administration SET NOT NULL; | ||
ALTER TABLE public.control_resources ALTER COLUMN unit SET NOT NULL; | ||
ALTER TABLE public.control_resources ADD UNIQUE (administration, unit, resource_name); | ||
CREATE SEQUENCE public.control_resources_id_seq; | ||
ALTER TABLE public.control_resources ALTER COLUMN id SET DEFAULT nextval('control_resources_id_seq'); |
32 changes: 32 additions & 0 deletions
32
backend/src/main/resources/db/testdata/V666.6__insert_dummy_control_resources.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,32 @@ | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'Cultures marines – DDTM 30'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'Cultures marines – DDTM 40'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'DML – DDTM 59'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'DML 2A'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'DPM – DDTM 14'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'DPM – DDTM 35'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'DPM – DDTM 44'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'SML 33'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'SML 50'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DDTM', 'Police de l''eau – DDTM 11'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DIRM DM', 'PAM Jeanne Barret'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DIRM DM', 'PAM Themis'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DIRM DM', 'Cross Etel'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DIRM DM', 'Cross Gris Nez'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Douane', 'BGC Ajaccio'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Douane', 'BGC Bastia'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Douane', 'BSN Ste Maxime'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Douane', 'DF 25 Libecciu'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('DREAL', 'DREAL Pays-de-La-Loire'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Gendarmerie Maritime', 'P602 Verdon'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Gendarmerie Nationale', 'BN Toulon'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Gendarmerie Nationale', 'Brigade fluviale de Rouen'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Gestionnaire AMP', 'Natura 2000 Côte Bleue Marine'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Marine Nationale', 'A636 Maïto'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Office Français de la Biodiversité', 'OFB Sd 85'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Office Français de la Biodiversité', 'OFB SD974 Brigade Nature – SOI'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Parcs Naturels Régionaux', 'Parc Naturel Régional Martinique'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Parcs Nationaux', 'Parc National de Guadeloupe'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Parcs Naturels Marins', 'PNM Martinique'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Police Municipale', 'Police Municipale Le Marin 972'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Réserves Naturelles', 'Réserve Naturelle de L''Ilot M''Bouzi'); | ||
INSERT INTO public.control_resources (administration, unit) VALUES ('Réserves Naturelles', 'Réserve Naturelle 7 Iles'); |
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.