Updated Branches:
  refs/heads/master 8d53887ce -> 37972a202

CLOUDSTACK-4035: set uuid for autoscale related tables as a part of the upgrade 
(was null on the previous versions of the code)

Conflicts:
        setup/db/db/schema-410to420.sql


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

Branch: refs/heads/master
Commit: 37972a2020f034dfa901e6b6ded5bf073fcce93f
Parents: 8d53887
Author: Alena Prokharchyk <[email protected]>
Authored: Mon Aug 12 09:36:10 2013 -0700
Committer: Alena Prokharchyk <[email protected]>
Committed: Mon Aug 12 09:39:07 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/37972a20/setup/db/db/schema-410to420.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql
index 45e26f2..292eb03 100644
--- a/setup/db/db/schema-410to420.sql
+++ b/setup/db/db/schema-410to420.sql
@@ -2286,3 +2286,14 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES 
('Advanced', 'DEFAULT', 'manag
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Snapshots', 'DEFAULT', 
'SnapshotManager', 'kvm.snapshot.enabled', 'false', 'whether snapshot is 
enabled for KVM hosts');
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 
'management-server', 'eip.use.multiple.netscalers', 'false', 'Should be set to 
true, if there will be multiple NetScaler devices providing EIP service in a 
zone');
 INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Snapshots', 'DEFAULT', 
'SnapshotManager', 'snapshot.backup.rightafter', 'true', 'backup snapshot right 
after snapshot is taken');
+
+DELETE FROM `cloud`.`configuration` where name='vmware.guest.vswitch';
+DELETE FROM `cloud`.`configuration` where name='vmware.private.vswitch';
+DELETE FROM `cloud`.`configuration` where name='vmware.public.vswitch';
+
+
+UPDATE `cloud`.`autoscale_vmgroups` set uuid=id WHERE uuid is NULL;
+UPDATE `cloud`.`autoscale_vmprofiles` set uuid=id WHERE uuid is NULL;
+UPDATE `cloud`.`autoscale_policies` set uuid=id WHERE uuid is NULL;
+UPDATE `cloud`.`counter` set uuid=id WHERE uuid is NULL;
+UPDATE `cloud`.`conditions` set uuid=id WHERE uuid is NULL;

Reply via email to