diff --git a/src/main/resources/db/migration/V5__chage_SRID.sql b/src/main/resources/db/migration/V5__chage_SRID.sql index 92a522bc..a51812cb 100644 --- a/src/main/resources/db/migration/V5__chage_SRID.sql +++ b/src/main/resources/db/migration/V5__chage_SRID.sql @@ -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; \ No newline at end of file + CHANGE location_srid location POINT SRID 5179 NOT NULL; \ No newline at end of file