Updated Branches: refs/heads/4.2 ffdde5cc2 -> 54f85043f
CLOUDSTACK-4125: [Upgrade] after upgrade 3.0.7 GA -> 4.2 deploy guest VM fail. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/54f85043 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/54f85043 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/54f85043 Branch: refs/heads/4.2 Commit: 54f85043f039f525ed57e6b63be435d7637b46de Parents: ffdde5c Author: Min Chen <[email protected]> Authored: Tue Aug 6 22:30:35 2013 -0700 Committer: Min Chen <[email protected]> Committed: Tue Aug 6 22:30:58 2013 -0700 ---------------------------------------------------------------------- setup/db/db/schema-410to420.sql | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/54f85043/setup/db/db/schema-410to420.sql ---------------------------------------------------------------------- diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index b3206af..1971072 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -65,6 +65,10 @@ alter table storage_pool change available_bytes used_bytes bigint unsigned; -- alter table volume_host_ref add update_count bigint unsigned; -- alter table volume_host_ref add updated datetime; alter table template_spool_ref add updated datetime; +UPDATE `cloud`.`template_spool_ref` set state='Ready' WHERE download_state = 'DOWNLOADED'; +UPDATE `cloud`.`template_spool_ref` set update_count=0; + + CREATE TABLE `cloud`.`object_datastore_ref` ( `id` bigint unsigned NOT NULL auto_increment, `datastore_uuid` varchar(255) NOT NULL,
