-
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 #3452 from ProjectSidewalk/sanyam_v_savla
#3413 Shapefile format doesn't allow integers longer than 9 digits
- Loading branch information
Showing
6 changed files
with
33 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# --- !Ups | ||
|
||
ALTER TABLE osm_way_street_edge | ||
ALTER COLUMN osm_way_id TYPE BIGINT; | ||
|
||
# --- !Downs | ||
|
||
ALTER TABLE osm_way_street_edge | ||
ADD COLUMN osm_way_id_temp INT; | ||
UPDATE osm_way_street_edge | ||
SET osm_way_id_temp = CAST(LEFT(osm_way_id::TEXT, 9) AS INT); | ||
ALTER TABLE osm_way_street_edge | ||
DROP COLUMN osm_way_id; | ||
ALTER TABLE osm_way_street_edge | ||
RENAME COLUMN osm_way_id_temp TO osm_way_id; |