Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fk constraints from return_value.timetable_version #198

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ALTER TABLE return_value.timetable_version
ADD CONSTRAINT timetable_version_vehicle_schedule_frame_id_fkey
FOREIGN KEY (vehicle_schedule_frame_id) REFERENCES vehicle_schedule.vehicle_schedule_frame(vehicle_schedule_frame_id);

ALTER TABLE return_value.timetable_version
ADD CONSTRAINT timetable_version_substitute_operating_day_by_line_type_id_fkey
FOREIGN KEY (substitute_operating_day_by_line_type_id) REFERENCES service_calendar.substitute_operating_day_by_line_type(substitute_operating_day_by_line_type_id);

ALTER TABLE return_value.timetable_version
ADD CONSTRAINT timetable_version_day_type_id_fkey
FOREIGN KEY (day_type_id) REFERENCES service_calendar.day_type(day_type_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ALTER TABLE return_value.timetable_version
DROP CONSTRAINT timetable_version_day_type_id_fkey;

ALTER TABLE return_value.timetable_version
DROP CONSTRAINT timetable_version_substitute_operating_day_by_line_type_id_fkey;

ALTER TABLE return_value.timetable_version
DROP CONSTRAINT timetable_version_vehicle_schedule_frame_id_fkey;
Loading