Skip to content

Commit

Permalink
Add missing control_unit_resources in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAntoine committed Oct 30, 2023
1 parent ec42b0a commit 7e6aa55
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ DELETE FROM missions_control_resources;
DELETE FROM control_unit_resources;
DELETE FROM missions_control_units;
DELETE FROM control_units;
DELETE FROM bases;

ALTER SEQUENCE public.control_units_id_seq RESTART WITH 10000;

Expand Down Expand Up @@ -44,7 +45,14 @@ INSERT INTO public.control_units(
( 10121, 1009, 'PAM Jeanne Barret'),
( 10080, 1009, 'PAM Themis');

INSERT INTO public.bases(
id, latitude, longitude, name) VALUES
( 1, 45.569, -2.569, 'L''Etoile Noire');

INSERT INTO public.control_unit_resources(
id, base_id, control_unit_id, name, type) VALUES
( 8, 1, 10019, 'PAM Jeanne Barret', 'PATROL_BOAT'),
( 10, 1, 10018, 'PAM Themis', 'PATROL_BOAT');

--
-- Add historic control units
Expand Down

0 comments on commit 7e6aa55

Please sign in to comment.