-
Notifications
You must be signed in to change notification settings - Fork 25
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 #3653 from ProjectSidewalk/develop
v7.20.6
- Loading branch information
Showing
19 changed files
with
122 additions
and
32 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
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
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
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
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
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
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
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
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 @@ | ||
# --- !Ups | ||
UPDATE mission_type SET mission_type_id = 7 WHERE mission_type = 'labelmapValidation'; | ||
ALTER TABLE label_history OWNER TO sidewalk; | ||
|
||
# --- !Downs |
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,21 @@ | ||
# --- !Ups | ||
-- No mutually exclusive tags exist together in a prod database, so we don't need to clean existing data. | ||
ALTER TABLE tag | ||
ADD CONSTRAINT tag_label_type_id_tag_unique UNIQUE (label_type_id, tag), | ||
ADD COLUMN mutually_exclusive_with TEXT, | ||
ADD CONSTRAINT tag_mutually_exclusive_with_self_reference_check CHECK (mutually_exclusive_with IS DISTINCT FROM tag); | ||
|
||
UPDATE tag SET mutually_exclusive_with = 'tactile warning' WHERE tag = 'missing tactile warning'; | ||
UPDATE tag SET mutually_exclusive_with = 'missing tactile warning' WHERE tag = 'tactile warning'; | ||
UPDATE tag SET mutually_exclusive_with = 'no alternate route' WHERE tag = 'alternate route present'; | ||
UPDATE tag SET mutually_exclusive_with = 'alternate route present' WHERE tag = 'no alternate route'; | ||
UPDATE tag SET mutually_exclusive_with = 'street has no sidewalks' WHERE tag = 'street has a sidewalk'; | ||
UPDATE tag SET mutually_exclusive_with = 'street has a sidewalk' WHERE tag = 'street has no sidewalks'; | ||
UPDATE tag SET mutually_exclusive_with = 'two buttons' WHERE tag = 'one button'; | ||
UPDATE tag SET mutually_exclusive_with = 'one button' WHERE tag = 'two buttons'; | ||
|
||
# --- !Downs | ||
ALTER TABLE tag | ||
DROP CONSTRAINT IF EXISTS tag_mutually_exclusive_with_self_reference_check, | ||
DROP COLUMN mutually_exclusive_with, | ||
DROP CONSTRAINT IF EXISTS tag_label_type_id_tag_unique; |
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 @@ | ||
# --- !Ups | ||
INSERT INTO version VALUES ('7.20.6', now(), 'Fixes conflicting tags but in new Validate, adds LA & Mendota configs.'); | ||
|
||
# --- !Downs | ||
DELETE FROM version WHERE version_id = '7.20.6'; |
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
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
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
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
Oops, something went wrong.