diff --git a/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/sql/oracle/oracle.sql b/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/sql/oracle/oracle.sql index 17b15ff..32377df 100644 --- a/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/sql/oracle/oracle.sql +++ b/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/sql/oracle/oracle.sql @@ -1,8 +1,8 @@ CREATE TABLE ezgmaplocation ( contentobject_attribute_id integer DEFAULT 0 NOT NULL, contentobject_version integer DEFAULT 0 NOT NULL, - latitude double precision DEFAULT 0 NOT NULL, - longitude double precision DEFAULT 0 NOT NULL, + latitude BINARY_DOUBLE DEFAULT 0 NOT NULL, + longitude BINARY_DOUBLE DEFAULT 0 NOT NULL, address varchar(150) default NULL, PRIMARY KEY (contentobject_attribute_id, contentobject_version) ); diff --git a/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/update/database/oracle/1.5/dbupdate-1.4-to-1.5.sql b/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/update/database/oracle/1.5/dbupdate-1.4-to-1.5.sql new file mode 100644 index 0000000..f8ac0f6 --- /dev/null +++ b/packages/ezgmaplocation_extension/ezextension/ezgmaplocation/update/database/oracle/1.5/dbupdate-1.4-to-1.5.sql @@ -0,0 +1,8 @@ +ALTER TABLE ezgmaplocation ADD ( latitude_tmp BINARY_DOUBLE DEFAULT 0 NOT NULL ); +ALTER TABLE ezgmaplocation ADD ( longitude_tmp BINARY_DOUBLE DEFAULT 0 NOT NULL ); +UPDATE ezgmaplocation SET latitude_tmp = latitude; +UPDATE ezgmaplocation SET longitude_tmp = longitude; +ALTER TABLE ezgmaplocation DROP ( latitude ); +ALTER TABLE ezgmaplocation DROP ( longitude ); +ALTER TABLE ezgmaplocation RENAME COLUMN latitude_tmp TO latitude; +ALTER TABLE ezgmaplocation RENAME COLUMN longitude_tmp TO longitude; \ No newline at end of file