-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move unique constraint to repeatable migration
- Loading branch information
1 parent
26aac06
commit a3c289f
Showing
3 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
migrations/hsl/timetables/1683624912748_create_substitute_operating_period/up.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
1 change: 1 addition & 0 deletions
1
.../hsl/timetables/2000000000105_R_after_migrate_create_substitute_operating_period/down.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 service_calendar.substitute_operating_period DROP CONSTRAINT substitute_operating_period_period_name_key; |
2 changes: 2 additions & 0 deletions
2
...ns/hsl/timetables/2000000000105_R_after_migrate_create_substitute_operating_period/up.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,2 @@ | ||
ALTER TABLE service_calendar.substitute_operating_period | ||
ADD CONSTRAINT substitute_operating_period_period_name_key UNIQUE (period_name); |