Updated Branches:
  refs/heads/master 899e9f0d6 -> 036fffcd7

Revert "CLOUDSTACK-1302: Add cache mode to SQL upgrade file"

This reverts commit 7f1168cec74c704257f2d6040cd352b240d5d299.


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

Branch: refs/heads/master
Commit: dc037b8d2fdeffc8d26dea57a4e13bcdca3885ca
Parents: 899e9f0
Author: Wido den Hollander <[email protected]>
Authored: Thu Nov 21 15:09:26 2013 +0100
Committer: Wido den Hollander <[email protected]>
Committed: Thu Nov 21 15:09:26 2013 +0100

----------------------------------------------------------------------
 setup/db/db/schema-421to430.sql | 26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/dc037b8d/setup/db/db/schema-421to430.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-421to430.sql b/setup/db/db/schema-421to430.sql
index b2f1728..7dc475f 100644
--- a/setup/db/db/schema-421to430.sql
+++ b/setup/db/db/schema-421to430.sql
@@ -120,7 +120,6 @@ UPDATE `cloud`.`configuration` SET `default_value` = 
`value`;
 #Upgrade the offerings and template table to have actual remove and states
 ALTER TABLE `cloud`.`disk_offering` ADD COLUMN `state` CHAR(40) NOT NULL 
DEFAULT 'Active' COMMENT 'state for disk offering';
 ALTER TABLE `cloud`.`disk_offering` ADD COLUMN `hv_ss_reserve` int(32) 
unsigned DEFAULT NULL COMMENT 'Hypervisor snapshot reserve space as a percent 
of a volume (for managed storage using Xen or VMware)';
-ALTER TABLE `cloud`.`disk_offering` ADD `cache_mode` VARCHAR( 16 ) NOT NULL 
DEFAULT 'none' COMMENT 'The disk cache mode to use for disks created with this 
offering';
 
 ALTER TABLE `cloud`.`volumes` ADD COLUMN `hv_ss_reserve` int(32) unsigned 
DEFAULT NULL COMMENT 'Hypervisor snapshot reserve space as a percent of a 
volume (for managed storage using Xen or VMware)';
 
@@ -157,7 +156,6 @@ CREATE VIEW `cloud`.`disk_offering_view` AS
         disk_offering.bytes_write_rate,
         disk_offering.iops_read_rate,
         disk_offering.iops_write_rate,
-        disk_offering.cache_mode,
         disk_offering.sort_key,
         disk_offering.type,
                disk_offering.display_offering,
@@ -174,7 +172,7 @@ CREATE VIEW `cloud`.`disk_offering_view` AS
 
 DROP VIEW IF EXISTS `cloud`.`service_offering_view`;
 CREATE VIEW `cloud`.`service_offering_view` AS
-    select
+    select 
         service_offering.id,
         disk_offering.uuid,
         disk_offering.name,
@@ -188,7 +186,6 @@ CREATE VIEW `cloud`.`service_offering_view` AS
         disk_offering.bytes_write_rate,
         disk_offering.iops_read_rate,
         disk_offering.iops_write_rate,
-        disk_offering.cache_mode,
         service_offering.cpu,
         service_offering.speed,
         service_offering.ram_size,
@@ -214,10 +211,10 @@ CREATE VIEW `cloud`.`service_offering_view` AS
         `cloud`.`domain` ON disk_offering.domain_id = domain.id
        where
                disk_offering.state='Active';
-
+               
 DROP VIEW IF EXISTS `cloud`.`template_view`;
 CREATE VIEW `cloud`.`template_view` AS
-    select
+    select 
         vm_template.id,
         vm_template.uuid,
         vm_template.unique_name,
@@ -258,7 +255,7 @@ CREATE VIEW `cloud`.`template_view` AS
         domain.path domain_path,
         projects.id project_id,
         projects.uuid project_uuid,
-        projects.name project_name,
+        projects.name project_name,        
         data_center.id data_center_id,
         data_center.uuid data_center_uuid,
         data_center.name data_center_name,
@@ -288,23 +285,23 @@ CREATE VIEW `cloud`.`template_view` AS
     from
         `cloud`.`vm_template`
             inner join
-        `cloud`.`guest_os` ON guest_os.id = vm_template.guest_os_id
+        `cloud`.`guest_os` ON guest_os.id = vm_template.guest_os_id        
             inner join
         `cloud`.`account` ON account.id = vm_template.account_id
             inner join
         `cloud`.`domain` ON domain.id = account.domain_id
             left join
-        `cloud`.`projects` ON projects.project_account_id = account.id
+        `cloud`.`projects` ON projects.project_account_id = account.id    
             left join
-        `cloud`.`vm_template_details` ON vm_template_details.template_id = 
vm_template.id
+        `cloud`.`vm_template_details` ON vm_template_details.template_id = 
vm_template.id         
             left join
-        `cloud`.`vm_template` source_template ON source_template.id = 
vm_template.source_template_id
+        `cloud`.`vm_template` source_template ON source_template.id = 
vm_template.source_template_id    
             left join
         `cloud`.`template_store_ref` ON template_store_ref.template_id = 
vm_template.id and template_store_ref.store_role = 'Image'
             left join
-        `cloud`.`image_store` ON image_store.removed is NULL AND 
template_store_ref.store_id is not NULL AND image_store.id = 
template_store_ref.store_id
+        `cloud`.`image_store` ON image_store.removed is NULL AND 
template_store_ref.store_id is not NULL AND image_store.id = 
template_store_ref.store_id 
                left join
-        `cloud`.`template_zone_ref` ON template_zone_ref.template_id = 
vm_template.id AND template_store_ref.store_id is NULL AND 
template_zone_ref.removed is null
+        `cloud`.`template_zone_ref` ON template_zone_ref.template_id = 
vm_template.id AND template_store_ref.store_id is NULL AND 
template_zone_ref.removed is null    
             left join
         `cloud`.`data_center` ON (image_store.data_center_id = data_center.id 
OR template_zone_ref.zone_id = data_center.id)
             left join
@@ -370,7 +367,6 @@ CREATE VIEW `cloud`.`volume_view` AS
         disk_offering.bytes_write_rate,
         disk_offering.iops_read_rate,
         disk_offering.iops_write_rate,
-        disk_offering.cache_mode,
         storage_pool.id pool_id,
         storage_pool.uuid pool_uuid,
         storage_pool.name pool_name,
@@ -424,7 +420,7 @@ CREATE VIEW `cloud`.`volume_view` AS
         `cloud`.`async_job` ON async_job.instance_id = volumes.id
             and async_job.instance_type = 'Volume'
             and async_job.job_status = 0;
-
+            
 DROP VIEW IF EXISTS `cloud`.`storage_pool_view`;
 CREATE VIEW `cloud`.`storage_pool_view` AS
     select

Reply via email to