forked from opentransportro/transitime
-
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 #13 from goeuropa/bugfix/fix-faulty-database-config
- Loading branch information
Showing
7 changed files
with
30 additions
and
13 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
1 change: 1 addition & 0 deletions
1
core/src/main/resources/db/migration/V20240516223700__fix-wrong-column-for-export-table.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 @@ | ||
ALTER TABLE export_table RENAME COLUMN first_name TO file_name; |
13 changes: 13 additions & 0 deletions
13
core/src/main/resources/db/migration/V20240516223701__fix-wrong-relation.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,13 @@ | ||
-- removing faulty constraints definitions | ||
ALTER TABLE travel_times_for_trip_to_travel_times_for_path | ||
DROP CONSTRAINT fk_tratimfortritotratimforpat_on_travel_times_for_stop_path; | ||
|
||
ALTER TABLE travel_times_for_trip_to_travel_times_for_path | ||
DROP CONSTRAINT fk_tratimfortritotratimforpat_on_travel_times_for_trip; | ||
|
||
-- recreating new constraints | ||
ALTER TABLE travel_times_for_trip_to_travel_times_for_path | ||
ADD CONSTRAINT fk_tratimfortritotratimforpat_on_travel_times_for_stop_path FOREIGN KEY (for_path_id) REFERENCES travel_times_for_stop_paths (id); | ||
|
||
ALTER TABLE travel_times_for_trip_to_travel_times_for_path | ||
ADD CONSTRAINT fk_tratimfortritotratimforpat_on_travel_times_for_trip FOREIGN KEY (for_trip_id) REFERENCES travel_times_for_trips (id); |
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