Looks like the initial db version was set to 4.0.0 on
developer/target/db/create-schema.sql
Change
From
INSERT INTO `version` (`version`, `updated`, `step`) VALUES('4.0.0', now(),
'Complete');
To
INSERT INTO `version` (`version`, `updated`, `step`) VALUES('4.2.0', now(),
'Complete');
Deploys db successfully, I now wonder if there is a sql patch update I could
have missed..
Whoever knows, please confirm
Thanks
-ilya
-----Original Message-----
From: Musayev, Ilya [mailto:[email protected]]
Sent: Tuesday, February 26, 2013 3:41 PM
To: [email protected]
Subject: [ACS][BUG] Master build breaks due to sql updates
Hi All,
Master build breaks, as com.cloud.upgrade.DatabaseUpgradeChecker attempts to
update/patch a new database with older versions. I'm a bit puzzled as to why a
fresh installed DB has to be updated. In either way, it looks like
DatabaseUpgradeChecker creates a dir "db" within developer/ target/db with many
update sql files going from versions of 2.x to 4.1
Is this an expected behavior to create a fresh database and then layer on the
sql patches on top? Or did the mechanism that checks if DB update is necessary
- stopped functioning?
To reproduce this issue, initiate a fresh build as of 02/26/13, run through
install and execute db deployment.
mvn -P developer -pl developer -Ddeploydb
Thanks
ilya