Skip to content

Commit

Permalink
Merge pull request #774 from cityofaustin/9312_add_rrfb_component
Browse files Browse the repository at this point in the history
Inserts new moped rrfb and roundabout components
  • Loading branch information
johnclary authored Aug 31, 2022
2 parents 400dbca + 822beb9 commit e143ee0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
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';
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);
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;
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;

0 comments on commit e143ee0

Please sign in to comment.