Skip to content

Commit

Permalink
Rename migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Feb 4, 2025
1 parent b598126 commit b4832cd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,3 @@ ALTER TABLE public.last_positions
ALTER COLUMN probability_risk_factor SET NOT NULL;
ALTER TABLE public.last_positions
ALTER COLUMN risk_factor SET NOT NULL;

ALTER TABLE public.risk_factors
ALTER COLUMN gear_onboard SET NOT NULL;
ALTER TABLE public.risk_factors
ALTER COLUMN species_onboard SET NOT NULL;

ALTER TABLE public.vessels
ALTER COLUMN declared_fishing_gears SET NOT NULL;

ALTER TABLE public.logbook_reports
ALTER COLUMN operation_type SET NOT NULL;
ALTER TABLE public.logbook_reports
ALTER COLUMN integration_datetime_utc SET NOT NULL;

ALTER TYPE public.logbook_message_transmission_format ADD VALUE 'MANUAL' AFTER 'FLUX';

ALTER TABLE public.logbook_reports
ALTER COLUMN transmission_format SET NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE public.risk_factors
ALTER COLUMN gear_onboard SET NOT NULL;
ALTER TABLE public.risk_factors
ALTER COLUMN species_onboard SET NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE public.vessels
ALTER COLUMN declared_fishing_gears SET NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TYPE public.logbook_message_transmission_format ADD VALUE 'MANUAL' AFTER 'FLUX';
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE public.logbook_reports
ALTER COLUMN operation_type SET NOT NULL;
ALTER TABLE public.logbook_reports
ALTER COLUMN integration_datetime_utc SET NOT NULL;
ALTER TABLE public.logbook_reports
ALTER COLUMN transmission_format SET NOT NULL;

0 comments on commit b4832cd

Please sign in to comment.