Skip to content

Commit

Permalink
Merge pull request #1100 from cityofaustin/13268-jc-smo-tags
Browse files Browse the repository at this point in the history
Adds Smart Mobility tags and updates a tag for Arterial Management
  • Loading branch information
johnclary authored Aug 16, 2023
2 parents eb63897 + 93dc288 commit d2f0501
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."moped_proj_tags" drop constraint "moped_proj_tags_tag_id_fkey",
add constraint "moped_proj_tags_tag_id_fkey"
foreign key ("tag_id")
references "public"."moped_tags"
("id") on update cascade on delete set null;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alter table "public"."moped_proj_tags" drop constraint "moped_proj_tags_tag_id_fkey",
add constraint "moped_proj_tags_tag_id_fkey"
foreign key ("tag_id")
references "public"."moped_tags"
("id") on update cascade on delete cascade;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DELETE FROM moped_tags where name like '%Smart Mobility%';
UPDATE moped_tags SET name = 'Arterial Management 2023', slug = 'arterial_management_2023' WHERE slug = 'arterial_management';
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

INSERT INTO moped_tags (type, name, slug) VALUES ('Other','Smart Mobility - Expression of Interest','smart_mobility_expression_of_interest');
INSERT INTO moped_tags (type, name, slug) VALUES ('Other','Smart Mobility - Pilot','smart_mobility_pilot');
UPDATE moped_tags SET name = 'Arterial Management', slug = 'arterial_management' WHERE slug = 'arterial_management_2023';

0 comments on commit d2f0501

Please sign in to comment.