-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: db changes for nz_imagery_survey_index
- Loading branch information
1 parent
24d8a4a
commit af0f0dd
Showing
6 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
db/sql/deploy/buildings_reference/add_log_column_nz_imagery_survey_index.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,7 @@ | ||
-- Deploy nz-buildings:buildings_reference/add_log_column_nz_imagery_survey_index to pg | ||
|
||
BEGIN; | ||
|
||
ALTER TABLE buildings_reference.reference_update_log ADD imagery_survey_index boolean DEFAULT False; | ||
|
||
COMMIT; |
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
7 changes: 7 additions & 0 deletions
7
db/sql/revert/buildings_reference/add_log_column_nz_imagery_survey_index.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,7 @@ | ||
-- Revert nz-buildings:buildings_reference/add_log_column_nz_imagery_survey_index from pg | ||
|
||
BEGIN; | ||
|
||
ALTER TABLE buildings_reference.reference_update_log DROP COLUMN imagery_survey_index; | ||
|
||
COMMIT; |
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 |
---|---|---|
|
@@ -105,6 +105,7 @@ buildings/remove_building_outlines_town_city_id_column 2024-08-14T03:50:02Z Ying | |
buildings_bulk_load/functions/bulk_load_outlines [buildings_bulk_load/functions/[email protected]] 2024-08-14T04:27:25Z Yingting Chen <[email protected]> # Remove town_city_id column in funct\nions. | ||
buildings_bulk_load/remove_bulk_load_outlines_town_city_id_column 2024-08-14T04:32:22Z Yingting Chen <[email protected]> # Remove town_city_id column in bulk_load_outlines table | ||
buildings_reference/functions/town_city [buildings_reference/functions/[email protected]] 2024-08-14T04:35:22Z Yingting Chen <[email protected]> # Remove functions of town_city table. | ||
buildings_reference/add_log_column_nz_imagery_survey_index 2024-08-14T04:37:22Z Yingting Chen <[email protected]> # Add nz_imagery_survey_index column in reference_update_log. | ||
buildings_reference/functions/reference_update_log [buildings_reference/functions/[email protected]] 2024-08-14T04:38:22Z Yingting Chen <[email protected]> # Remove town_city in reference_update_log update function. | ||
buildings_reference/remove_suburb_locality_old_name_column 2024-08-14T04:40:22Z Yingting Chen <[email protected]> # Remove suburb_locality old name columns from FENZ | ||
buildings_reference/drop_town_city 2024-08-14T04:45:02Z Yingting Chen <[email protected]> # Drop table town_city as it has been merged into suburb_locality. | ||
|
9 changes: 9 additions & 0 deletions
9
db/sql/verify/buildings_reference/add_log_column_nz_imagery_survey_index.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,9 @@ | ||
-- Verify nz-buildings:buildings_reference/add_log_column_nz_imagery_survey_index on pg | ||
|
||
BEGIN; | ||
|
||
SELECT imagery_survey_index | ||
FROM buildings_reference.reference_update_log | ||
WHERE FALSE; | ||
|
||
ROLLBACK; |
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