-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
157c8c1
commit 51f3b82
Showing
23 changed files
with
506 additions
and
363 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
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
68 changes: 6 additions & 62 deletions
68
backend/src/main/resources/db/testdata/V666.11__Insert_risk_factors.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 |
---|---|---|
@@ -1,62 +1,6 @@ | ||
insert into risk_factors (cfr, | ||
impact_risk_factor, | ||
probability_risk_factor, | ||
detectability_risk_factor, | ||
risk_factor, | ||
last_logbook_message_datetime_utc, | ||
departure_datetime_utc, | ||
trip_number, | ||
gear_onboard, | ||
species_onboard, | ||
segments, | ||
total_weight_onboard, | ||
control_priority_level, | ||
segment_highest_impact, | ||
segment_highest_priority, | ||
vessel_id, | ||
ircs, | ||
external_immatriculation, | ||
last_control_datetime_utc, | ||
last_control_infraction, | ||
post_control_comments, | ||
number_recent_controls, | ||
control_rate_risk_factor, | ||
infraction_score, | ||
infraction_rate_risk_factor, | ||
number_controls_last_5_years, | ||
number_controls_last_3_years, | ||
number_infractions_last_5_years, | ||
number_gear_seizures_last_5_years, | ||
number_species_seizures_last_5_years, | ||
number_vessel_seizures_last_5_years) | ||
values ('FAK000999999', | ||
2.1, | ||
2, | ||
3, | ||
2.473, | ||
CURRENT_DATE, | ||
CURRENT_DATE, | ||
123456, | ||
'[{"gear": "OTB", "mesh": 70.0, "dimensions": 45.0}]', | ||
'[{ "gear": "OTB","faoZone": "27.8.b","species": "BLI","weight": 13.46 },{ "gear": "OTB","faoZone": "27.8.c","species": "HKE","weight": 235.6 },{ "gear": "OTB","faoZone": "27.8.b","species": "HKE","weight": 235.6 }]', | ||
'{"NWW10", "PEL 03"}', | ||
1235.36, | ||
2.56, | ||
'NWW10', | ||
'PEL 03', | ||
1, | ||
'CALLME', | ||
'', | ||
CURRENT_DATE, | ||
true, | ||
'', | ||
0, | ||
3.8, | ||
NULL, | ||
2.56, | ||
8, | ||
1, | ||
5, | ||
4, | ||
3, | ||
2); | ||
-- /!\ This file is automatically generated by a local script. | ||
-- Do NOT update it directly, update the associated .jsonc file. | ||
|
||
INSERT INTO risk_factors (cfr, control_priority_level, control_rate_risk_factor, departure_datetime_utc, detectability_risk_factor, external_immatriculation, impact_risk_factor, infraction_rate_risk_factor, infraction_score, ircs, last_control_datetime_utc, last_control_infraction, last_logbook_message_datetime_utc, number_controls_last_3_years, number_controls_last_5_years, number_gear_seizures_last_5_years, number_infractions_last_5_years, number_recent_controls, number_species_seizures_last_5_years, number_vessel_seizures_last_5_years, post_control_comments, probability_risk_factor, risk_factor, segment_highest_impact, segment_highest_priority, segments, total_weight_onboard, trip_number, vessel_id, gear_onboard, species_onboard) VALUES ('FAK000999999', 2.56, 3.8, CURRENT_DATE, 3, '', 2.1, 2.56, NULL, 'CALLME', CURRENT_DATE, true, CURRENT_DATE, 1, 8, 4, 5, 0, 3, 2, '', 2, 2.473, 'NWW10', 'PEL 03', '{"NWW10", "PEL 03"}', 1235.36, 123456, 1, '[{"gear":"OTB","mesh":70,"dimensions":45}]', '[{"gear":"OTB","faoZone":"27.8.b","species":"BLI","weight":13.46},{"gear":"OTB","faoZone":"27.8.c","species":"HKE","weight":235.6},{"gear":"OTB","faoZone":"27.8.b","species":"HKE","weight":235.6}]'); | ||
|
||
INSERT INTO risk_factors (cfr, control_priority_level, control_rate_risk_factor, departure_datetime_utc, detectability_risk_factor, external_immatriculation, impact_risk_factor, infraction_rate_risk_factor, infraction_score, ircs, last_control_datetime_utc, last_control_infraction, last_logbook_message_datetime_utc, number_controls_last_3_years, number_controls_last_5_years, number_gear_seizures_last_5_years, number_infractions_last_5_years, number_recent_controls, number_species_seizures_last_5_years, number_vessel_seizures_last_5_years, post_control_comments, probability_risk_factor, risk_factor, segment_highest_impact, segment_highest_priority, segments, total_weight_onboard, trip_number, vessel_id, gear_onboard, species_onboard) VALUES ('CFR101', 4, 5, NOW() - INTERVAL '1 day', 5, '', 4, 3, NULL, 'IRCS101', '2023-01-01T00:00:00', true, NOW(), 0, 0, 4, 5, 0, 3, 2, '', 4, 4, 'NWW10', 'PEL 03', '{"NWW10", "PEL 03"}', 12345.67, 123102, 101, '[{"gear":"OTB","mesh":70,"dimensions":45}]', '[{"gear":"OTB","faoZone":"27.8.b","species":"BLI","weight":13.46},{"gear":"OTB","faoZone":"27.8.c","species":"HKE","weight":235.6},{"gear":"OTB","faoZone":"27.8.b","species":"HKE","weight":235.6}]'); |
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
backend/src/main/resources/db/testdata/V666.2.1__Insert_more_dummy_vessels.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,4 @@ | ||
-- /!\ This file is automatically generated by a local script. | ||
-- Do NOT update it directly, update the associated .jsonc file. | ||
|
||
INSERT INTO vessels (id, cfr, mmsi, ircs, external_immatriculation, vessel_name, flag_state, length, under_charter) VALUES (101, 'CFR101', 'MMSI101', 'IRCS101', 'EXTIMM101', 'VIVA ESPANA', 'ES', 15, false); |
Oops, something went wrong.