-
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 #335 from cityofaustin/6251-sg-project-components
Project Components: Create Map for tab to view components + Map #6251
- Loading branch information
Showing
22 changed files
with
1,930 additions
and
175 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
5 changes: 5 additions & 0 deletions
5
...1623029598102_alter_table_public_moped_components_alter_column_component_subtype/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 @@ | ||
UPDATE moped_components | ||
SET component_subtype = ' ' | ||
WHERE component_subtype IS NULL; | ||
|
||
ALTER TABLE "public"."moped_components" ALTER COLUMN "component_subtype" SET NOT NULL; |
5 changes: 5 additions & 0 deletions
5
...s/1623029598102_alter_table_public_moped_components_alter_column_component_subtype/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_components" ALTER COLUMN "component_subtype" DROP NOT NULL; | ||
|
||
UPDATE moped_components | ||
SET component_subtype = NULL | ||
WHERE component_subtype = ' '; |
1 change: 1 addition & 0 deletions
1
...ions/1623342617906_alter_table_public_moped_proj_components_add_column_status_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 @@ | ||
ALTER TABLE "public"."moped_proj_components" DROP COLUMN "status_id"; |
1 change: 1 addition & 0 deletions
1
...ations/1623342617906_alter_table_public_moped_proj_components_add_column_status_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 @@ | ||
ALTER TABLE "public"."moped_proj_components" ADD COLUMN "status_id" integer NOT NULL DEFAULT 0; |
1 change: 1 addition & 0 deletions
1
...6518_alter_table_public_moped_proj_components_subcomponents_add_column_status_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 @@ | ||
ALTER TABLE "public"."moped_proj_components_subcomponents" DROP COLUMN "status_id"; |
1 change: 1 addition & 0 deletions
1
...106518_alter_table_public_moped_proj_components_subcomponents_add_column_status_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 @@ | ||
ALTER TABLE "public"."moped_proj_components_subcomponents" ADD COLUMN "status_id" integer NOT NULL DEFAULT 0; |
6 changes: 6 additions & 0 deletions
6
...ase/migrations/1624565634524_update_table_moped_components_add_generic_component/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,6 @@ | ||
/* Delete extent project component */ | ||
DELETE FROM public.moped_components WHERE component_id = 0; | ||
|
||
/* Then delete the rest of the components in the migration */ | ||
DELETE FROM public.moped_components | ||
WHERE component_id >= 19 AND component_id <= 59; |
46 changes: 46 additions & 0 deletions
46
...abase/migrations/1624565634524_update_table_moped_components_add_generic_component/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,46 @@ | ||
/* Adds the project extent component or generic type */ | ||
INSERT INTO | ||
public.moped_components (component_id, component_name, status_id, component_subtype, line_representation) | ||
VALUES | ||
(19, 'Bike Parking', 1, null, false), | ||
(20, 'Bike Parking', 1, 'Corral', false), | ||
(21, 'Bike Lane', 1, 'Turn Lane', true), | ||
(22, 'Bike Lane', 1, 'Wide Curb Lane', true), | ||
(23, 'Pavement Marking', 1, 'Crossbike', false), | ||
(24, 'Access Control', 1, 'Driveway Gate', false), | ||
(25, 'Dynamic Speed Display Device', 1, null, false), | ||
(26, 'Guardrail', 1, null, true), | ||
(27, 'Highway', 1, 'Access Ramp', false), | ||
(28, 'Highway', 1, 'Added Capacity / Lanes', true), | ||
(29, 'Highway', 1, 'Collector Distributor', true), | ||
(30, 'Highway', 1, 'Flyover', true), | ||
(31, 'Highway', 1, 'Intersection Grade Separation', true), | ||
(32, 'Highway', 1, 'Managed Lane', true), | ||
(33, 'Highway', 1, 'Toll Road', true), | ||
(34, 'Landscaping', 1, null, true), | ||
(35, 'Placemaking', 1, null, true), | ||
(36, 'Refuge Island', 1, 'Bike', false), | ||
(37, 'Refuge Island', 1, 'Ped', false), | ||
(38, 'Refuge Island', 1, 'Bike/Ped', false), | ||
(39, 'Signal', 1, 'School Zone Beacon', false), | ||
(40, 'Pavement Marking', 1, 'School Zone', false), | ||
(41, 'Sidewalk', 1, null, true), | ||
(42, 'Sidewalk', 1, 'In Street', true), | ||
(43, 'Sidewalk', 1, 'Wide', true), | ||
(44, 'Sidewalk', 1, 'With Curb and Gutter', true), | ||
(45, 'Sidewalk', 1, 'Rams', true), | ||
(46, 'Speed Management', 1, 'Chicane', false), | ||
(47, 'Speed Management', 1, 'Nbhd Traffic Circle', false), | ||
(48, 'Speed Management', 1, 'Speed Cushions (Asphalt)', false), | ||
(49, 'Speed Management', 1, 'Speed Cushions (Rubber)', false), | ||
(50, 'Speed Management', 1, 'Speed Humps', false), | ||
(51, 'Pavement Marking', 1, 'Stop Bar', false), | ||
(52, 'Transit', 1, 'Lane', true), | ||
(53, 'Transit', 1, 'Managed Lane Access Point', true), | ||
(54, 'Transit', 1, 'Transit Queue Jump', true), | ||
(55, 'Transit', 1, 'Transit/Bike Lane', true), | ||
(56, 'Pavement Marking', 1, 'Two-stage Bike Turn Queue', false), | ||
(57, 'Pavement Marking', 1, 'Sharrows', false), | ||
(58, 'Pavement Marking', 1, 'Sharrows (Wide Curb Lane)', false), | ||
(59, 'Signage', 1, null, false), | ||
(0, 'Project Extent - Generic', 1, null, false); |
Oops, something went wrong.