-
Notifications
You must be signed in to change notification settings - Fork 21
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 #960 from NASA-AMMOS/fix/make-constraints-descript…
…ion-optional Make `Description` optional across the DB
- Loading branch information
Showing
10 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
deployment/hasura/migrations/AerieMerlin/15_defintion_consistency/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,7 @@ | ||
alter table public.simulation_template | ||
alter column description drop default; | ||
|
||
alter table public."constraint" | ||
alter column description drop default; | ||
|
||
call migrations.mark_migration_rolled_back('15'); |
7 changes: 7 additions & 0 deletions
7
deployment/hasura/migrations/AerieMerlin/15_defintion_consistency/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,7 @@ | ||
alter table public."constraint" | ||
alter column description set default ''; | ||
|
||
alter table public.simulation_template | ||
alter column description set default ''; | ||
|
||
call migrations.mark_migration_applied('15'); |
9 changes: 9 additions & 0 deletions
9
deployment/hasura/migrations/AerieScheduler/7_definition_consistency/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,9 @@ | ||
alter table scheduling_condition | ||
alter column description drop default, | ||
alter column description drop not null; | ||
|
||
alter table scheduling_goal | ||
alter column description drop default, | ||
alter column description drop not null; | ||
|
||
call migrations.mark_migration_rolled_back('7'); |
9 changes: 9 additions & 0 deletions
9
deployment/hasura/migrations/AerieScheduler/7_definition_consistency/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,9 @@ | ||
alter table scheduling_goal | ||
alter column description set default '', | ||
alter column description set not null; | ||
|
||
alter table scheduling_condition | ||
alter column description set default '', | ||
alter column description set not null; | ||
|
||
call migrations.mark_migration_applied('7'); |
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