Updated Branches:
  refs/heads/master d2dff5b5e -> 3c35eb498

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/3c35eb49
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3c35eb49
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3c35eb49

Branch: refs/heads/master
Commit: 3c35eb498070c07335d2db4cbdfb5e5a6c14f20d
Parents: d2dff5b
Author: Min Chen <[email protected]>
Authored: Tue Aug 6 22:30:35 2013 -0700
Committer: Min Chen <[email protected]>
Committed: Tue Aug 6 22:33:11 2013 -0700

----------------------------------------------------------------------
 setup/db/db/schema-410to420.sql | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3c35eb49/setup/db/db/schema-410to420.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
index 797a931..1d3060d 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,

Reply via email to