-
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 #1100 from cityofaustin/13268-jc-smo-tags
Adds Smart Mobility tags and updates a tag for Arterial Management
- Loading branch information
Showing
4 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
moped-database/migrations/1692145812500_set_fk_public_moped_proj_tags_tag_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_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; |
5 changes: 5 additions & 0 deletions
5
moped-database/migrations/1692145812500_set_fk_public_moped_proj_tags_tag_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_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; |
2 changes: 2 additions & 0 deletions
2
moped-database/migrations/1692145812600_smart_mobility_tags/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,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'; |
4 changes: 4 additions & 0 deletions
4
moped-database/migrations/1692145812600_smart_mobility_tags/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,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'; |