From 3c35eb498070c07335d2db4cbdfb5e5a6c14f20d Mon Sep 17 00:00:00 2001 From: Min Chen Date: Tue, 6 Aug 2013 22:30:35 -0700 Subject: [PATCH] CLOUDSTACK-4125: [Upgrade] after upgrade 3.0.7 GA -> 4.2 deploy guest VM fail. --- setup/db/db/schema-410to420.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index 797a931f603..1d3060db329 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -64,6 +64,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,