-
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 #1461 from NASA-AMMOS/feature/add-default-mission-…
…model-view Added a table to track the default view for a given mission model
- Loading branch information
Showing
6 changed files
with
161 additions
and
136 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
4 changes: 4 additions & 0 deletions
4
deployment/hasura/migrations/Aerie/4_mission_model_default_view/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,4 @@ | ||
alter table merlin.mission_model | ||
drop column default_view_id; | ||
|
||
call migrations.mark_migration_rolled_back('4'); |
11 changes: 11 additions & 0 deletions
11
deployment/hasura/migrations/Aerie/4_mission_model_default_view/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,11 @@ | ||
alter table merlin.mission_model | ||
add column default_view_id integer default null, | ||
|
||
add foreign key (default_view_id) | ||
references ui.view (id) | ||
on delete set null; | ||
|
||
comment on column merlin.mission_model.default_view_id is e'' | ||
'The ID of an option default view for the mission model.'; | ||
|
||
call migrations.mark_migration_applied('4'); |
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