Skip to content

Commit dc037b8

Browse files
committed
Revert "CLOUDSTACK-1302: Add cache mode to SQL upgrade file"
This reverts commit 7f1168c.
1 parent 899e9f0 commit dc037b8

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

‎setup/db/db/schema-421to430.sql‎

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ UPDATE `cloud`.`configuration` SET `default_value` = `value`;
120120
#Upgrade the offerings and template table to have actual remove and states
121121
ALTER TABLE `cloud`.`disk_offering` ADD COLUMN `state` CHAR(40) NOT NULL DEFAULT 'Active' COMMENT 'state for disk offering';
122122
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)';
123-
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';
124123

125124
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)';
126125

@@ -157,7 +156,6 @@ CREATE VIEW `cloud`.`disk_offering_view` AS
157156
disk_offering.bytes_write_rate,
158157
disk_offering.iops_read_rate,
159158
disk_offering.iops_write_rate,
160-
disk_offering.cache_mode,
161159
disk_offering.sort_key,
162160
disk_offering.type,
163161
disk_offering.display_offering,
@@ -174,7 +172,7 @@ CREATE VIEW `cloud`.`disk_offering_view` AS
174172

175173
DROP VIEW IF EXISTS `cloud`.`service_offering_view`;
176174
CREATE VIEW `cloud`.`service_offering_view` AS
177-
select
175+
select
178176
service_offering.id,
179177
disk_offering.uuid,
180178
disk_offering.name,
@@ -188,7 +186,6 @@ CREATE VIEW `cloud`.`service_offering_view` AS
188186
disk_offering.bytes_write_rate,
189187
disk_offering.iops_read_rate,
190188
disk_offering.iops_write_rate,
191-
disk_offering.cache_mode,
192189
service_offering.cpu,
193190
service_offering.speed,
194191
service_offering.ram_size,
@@ -214,10 +211,10 @@ CREATE VIEW `cloud`.`service_offering_view` AS
214211
`cloud`.`domain` ON disk_offering.domain_id = domain.id
215212
where
216213
disk_offering.state='Active';
217-
214+
218215
DROP VIEW IF EXISTS `cloud`.`template_view`;
219216
CREATE VIEW `cloud`.`template_view` AS
220-
select
217+
select
221218
vm_template.id,
222219
vm_template.uuid,
223220
vm_template.unique_name,
@@ -258,7 +255,7 @@ CREATE VIEW `cloud`.`template_view` AS
258255
domain.path domain_path,
259256
projects.id project_id,
260257
projects.uuid project_uuid,
261-
projects.name project_name,
258+
projects.name project_name,
262259
data_center.id data_center_id,
263260
data_center.uuid data_center_uuid,
264261
data_center.name data_center_name,
@@ -288,23 +285,23 @@ CREATE VIEW `cloud`.`template_view` AS
288285
from
289286
`cloud`.`vm_template`
290287
inner join
291-
`cloud`.`guest_os` ON guest_os.id = vm_template.guest_os_id
288+
`cloud`.`guest_os` ON guest_os.id = vm_template.guest_os_id
292289
inner join
293290
`cloud`.`account` ON account.id = vm_template.account_id
294291
inner join
295292
`cloud`.`domain` ON domain.id = account.domain_id
296293
left join
297-
`cloud`.`projects` ON projects.project_account_id = account.id
294+
`cloud`.`projects` ON projects.project_account_id = account.id
298295
left join
299-
`cloud`.`vm_template_details` ON vm_template_details.template_id = vm_template.id
296+
`cloud`.`vm_template_details` ON vm_template_details.template_id = vm_template.id
300297
left join
301-
`cloud`.`vm_template` source_template ON source_template.id = vm_template.source_template_id
298+
`cloud`.`vm_template` source_template ON source_template.id = vm_template.source_template_id
302299
left join
303300
`cloud`.`template_store_ref` ON template_store_ref.template_id = vm_template.id and template_store_ref.store_role = 'Image'
304301
left join
305-
`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
302+
`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
306303
left join
307-
`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
304+
`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
308305
left join
309306
`cloud`.`data_center` ON (image_store.data_center_id = data_center.id OR template_zone_ref.zone_id = data_center.id)
310307
left join
@@ -370,7 +367,6 @@ CREATE VIEW `cloud`.`volume_view` AS
370367
disk_offering.bytes_write_rate,
371368
disk_offering.iops_read_rate,
372369
disk_offering.iops_write_rate,
373-
disk_offering.cache_mode,
374370
storage_pool.id pool_id,
375371
storage_pool.uuid pool_uuid,
376372
storage_pool.name pool_name,
@@ -424,7 +420,7 @@ CREATE VIEW `cloud`.`volume_view` AS
424420
`cloud`.`async_job` ON async_job.instance_id = volumes.id
425421
and async_job.instance_type = 'Volume'
426422
and async_job.job_status = 0;
427-
423+
428424
DROP VIEW IF EXISTS `cloud`.`storage_pool_view`;
429425
CREATE VIEW `cloud`.`storage_pool_view` AS
430426
select

0 commit comments

Comments
 (0)