cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijayendra...@apache.org
Subject git commit: updated refs/heads/4.2-forward to a30a33c
Date Thu, 29 Aug 2013 01:32:03 GMT
Updated Branches:
  refs/heads/4.2-forward 56ebf3b9b -> a30a33c14


CLOUDSTACK-4539: [VMWARE] vmware.create.full.clone is set to true in upgraded setup;default
nature of vms are full clone

Description:

    Do not overwrite value of vmware.create.full.clone flag in the
    cloud db if it already exists. This will preserve the configured
    clone creation behaviour across upgrades.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a30a33c1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a30a33c1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a30a33c1

Branch: refs/heads/4.2-forward
Commit: a30a33c14d38a30840be19619c9aff65ed14cf2f
Parents: 56ebf3b
Author: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
Authored: Wed Aug 28 10:58:02 2013 -0700
Committer: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
Committed: Wed Aug 28 11:53:28 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a30a33c1/setup/db/db/schema-410to420.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
index 4d68838..723791d 100644
--- a/setup/db/db/schema-410to420.sql
+++ b/setup/db/db/schema-410to420.sql
@@ -403,7 +403,12 @@ CREATE TABLE `cloud`.`user_vm_clone_setting` (
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 
-INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'UserVmManager',
'vmware.create.full.clone' , 'true', 'If set to true, creates VMs as full clones on ESX hypervisor');
+INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description)
+    SELECT tmp.category, tmp.instance, tmp.component, tmp.name, tmp.value, tmp.description
FROM
+    (SELECT 'Advanced' category, 'DEFAULT' instance, 'UserVmManager' component, 'vmware.create.full.clone'
name, 'true' value, 'If set to true, creates VMs as full clones on ESX hypervisor' description)
tmp
+    WHERE NOT EXISTS (SELECT 1 FROM `cloud`.`configuration` WHERE name = 'vmware.create.full.clone');
+
+
 
 CREATE TABLE `cloud`.`affinity_group` (
   `id` bigint unsigned NOT NULL auto_increment,


Mime
View raw message