cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject git commit: updated refs/heads/4.2 to 1970a0d
Date Tue, 06 Aug 2013 11:45:26 GMT
Updated Branches:
  refs/heads/4.2 fab45b518 -> 1970a0ddf

Introduced new column format for volumes as per the hypervisor by joining the storage pool
and cluster table. Since pre 4.2 storage pool will always have cluster id populated.
Signed off by : nitin mehta<>


Branch: refs/heads/4.2
Commit: 1970a0ddffeb46ab6928560268c144af07a193a9
Parents: fab45b5
Author: Nitin Mehta <>
Authored: Tue Aug 6 17:14:11 2013 +0530
Committer: Nitin Mehta <>
Committed: Tue Aug 6 17:14:29 2013 +0530

 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 6c98802..e554b19 100644
--- a/setup/db/db/schema-410to420.sql
+++ b/setup/db/db/schema-410to420.sql
@@ -492,6 +492,10 @@ ALTER TABLE `cloud`.`user_vm_details` ADD COLUMN `display_detail` tinyint(1)
 ALTER TABLE `cloud`.`volumes` ADD COLUMN `display_volume` tinyint(1) NOT NULL DEFAULT 1 COMMENT
'Should volume be displayed to the end user';
 ALTER TABLE `cloud`.`volumes` ADD COLUMN `format` varchar(255) COMMENT 'volume format';
+update  `cloud`.`volumes` v,  `cloud`.`storage_pool` s,  `cloud`.`cluster` c  set v.format='VHD'
where and and c.hypervisor_type='XenServer';
+update  `cloud`.`volumes` v,  `cloud`.`storage_pool` s,  `cloud`.`cluster` c  set v.format='OVA'
where and and c.hypervisor_type='VMware';
+update  `cloud`.`volumes` v,  `cloud`.`storage_pool` s,  `cloud`.`cluster` c  set v.format='QCOW2'
where and and c.hypervisor_type='KVM';
+update  `cloud`.`volumes` v,  `cloud`.`storage_pool` s,  `cloud`.`cluster` c  set v.format='RAW'
where and and c.hypervisor_type='Ovm';
 ALTER TABLE `cloud`.`networks` ADD COLUMN `display_network` tinyint(1) NOT NULL DEFAULT 1
COMMENT 'Should network be displayed to the end user';

View raw message