Skip to content

Commit

Permalink
Fixed #019338: Database Check Failed after upgrading from Ez Publish …
Browse files Browse the repository at this point in the history
…4.6 > 4.7 rc1 with Oracle
  • Loading branch information
lolautruche committed Apr 27, 2012
1 parent e282027 commit 3369bc1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
@@ -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)
);
Expand Down
@@ -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;

0 comments on commit 3369bc1

Please sign in to comment.