-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
6 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
ALTER TABLE store | ||
ADD location_new_srid POINT SRID 5179 NOT NULL; | ||
ADD location_srid POINT SRID 5179 NULL; | ||
|
||
UPDATE store | ||
SET location_new_srid = ST_PointFromText(ST_AsText(location), 5179); | ||
SET location_srid = ST_PointFromText(ST_AsText(location), 5179); | ||
|
||
ALTER TABLE store | ||
DROP location; | ||
|
||
ALTER TABLE store | ||
CHANGE location_new_srid location POINT SRID 5179 NOT NULL; | ||
CHANGE location_srid location POINT SRID 5179 NOT NULL; | ||
|
||
|
||
ALTER TABLE crew | ||
ADD location_new_srid POINT SRID 5179 NOT NULL; | ||
ADD location_srid POINT SRID 5179 NULL; | ||
|
||
UPDATE crew | ||
SET location_new_srid = ST_PointFromText(ST_AsText(location), 5179); | ||
SET location_srid = ST_PointFromText(ST_AsText(location), 5179); | ||
|
||
ALTER TABLE crew | ||
DROP location; | ||
|
||
ALTER TABLE crew | ||
CHANGE location_new_srid location POINT SRID 5179 NOT NULL; | ||
CHANGE location_srid location POINT SRID 5179 NOT NULL; |