-
Notifications
You must be signed in to change notification settings - Fork 3
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 #774 from cityofaustin/9312_add_rrfb_component
Inserts new moped rrfb and roundabout components
- Loading branch information
Showing
4 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
moped-database/migrations/1661896731916_insert_moped_components/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,3 @@ | ||
-- Delete added moped_components records | ||
DELETE FROM public.moped_components WHERE component_subtype = 'RRFB'; | ||
DELETE FROM public.moped_components WHERE component_subtype = 'Roundabout'; |
9 changes: 9 additions & 0 deletions
9
moped-database/migrations/1661896731916_insert_moped_components/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 @@ | ||
-- Insert new moped_components | ||
INSERT INTO public.moped_components ( | ||
component_name, | ||
status_id, | ||
component_subtype, | ||
line_representation | ||
) VALUES | ||
('Signage', 1, 'RRFB', false), | ||
('Intersection', 1, 'Roundabout', false); |
5 changes: 5 additions & 0 deletions
5
...tabase/migrations/1661897396206_set_fk_public_moped_proj_components_component_id/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,5 @@ | ||
alter table "public"."moped_proj_components" drop constraint "moped_proj_components_component_id_fkey", | ||
add constraint "moped_proj_components_component_id_fkey" | ||
foreign key ("component_id") | ||
references "public"."moped_components" | ||
("component_id") on update no action on delete no action; |
5 changes: 5 additions & 0 deletions
5
...database/migrations/1661897396206_set_fk_public_moped_proj_components_component_id/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,5 @@ | ||
alter table "public"."moped_proj_components" drop constraint "moped_proj_components_component_id_fkey", | ||
add constraint "moped_proj_components_component_id_fkey" | ||
foreign key ("component_id") | ||
references "public"."moped_components" | ||
("component_id") on update cascade on delete set null; |