Skip to content

Commit aff2286

Browse files
author
Alena Prokharchyk
committed
CLOUDSTACK-6068: set display flag to true in service/disk_offering_details tables
1 parent 675414f commit aff2286

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

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

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ CREATE VIEW `cloud`.`disk_offering_view` AS
173173

174174
DROP VIEW IF EXISTS `cloud`.`service_offering_view`;
175175
CREATE VIEW `cloud`.`service_offering_view` AS
176-
select
176+
select
177177
service_offering.id,
178178
disk_offering.uuid,
179179
disk_offering.name,
@@ -212,10 +212,10 @@ CREATE VIEW `cloud`.`service_offering_view` AS
212212
`cloud`.`domain` ON disk_offering.domain_id = domain.id
213213
where
214214
disk_offering.state='Active';
215-
215+
216216
DROP VIEW IF EXISTS `cloud`.`template_view`;
217217
CREATE VIEW `cloud`.`template_view` AS
218-
select
218+
select
219219
vm_template.id,
220220
vm_template.uuid,
221221
vm_template.unique_name,
@@ -257,7 +257,7 @@ CREATE VIEW `cloud`.`template_view` AS
257257
domain.path domain_path,
258258
projects.id project_id,
259259
projects.uuid project_uuid,
260-
projects.name project_name,
260+
projects.name project_name,
261261
data_center.id data_center_id,
262262
data_center.uuid data_center_uuid,
263263
data_center.name data_center_name,
@@ -287,23 +287,23 @@ CREATE VIEW `cloud`.`template_view` AS
287287
from
288288
`cloud`.`vm_template`
289289
inner join
290-
`cloud`.`guest_os` ON guest_os.id = vm_template.guest_os_id
290+
`cloud`.`guest_os` ON guest_os.id = vm_template.guest_os_id
291291
inner join
292292
`cloud`.`account` ON account.id = vm_template.account_id
293293
inner join
294294
`cloud`.`domain` ON domain.id = account.domain_id
295295
left join
296-
`cloud`.`projects` ON projects.project_account_id = account.id
296+
`cloud`.`projects` ON projects.project_account_id = account.id
297297
left join
298-
`cloud`.`vm_template_details` ON vm_template_details.template_id = vm_template.id
298+
`cloud`.`vm_template_details` ON vm_template_details.template_id = vm_template.id
299299
left join
300-
`cloud`.`vm_template` source_template ON source_template.id = vm_template.source_template_id
300+
`cloud`.`vm_template` source_template ON source_template.id = vm_template.source_template_id
301301
left join
302302
`cloud`.`template_store_ref` ON template_store_ref.template_id = vm_template.id and template_store_ref.store_role = 'Image'
303303
left join
304-
`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
304+
`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
305305
left join
306-
`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
306+
`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
307307
left join
308308
`cloud`.`data_center` ON (image_store.data_center_id = data_center.id OR template_zone_ref.zone_id = data_center.id)
309309
left join
@@ -420,7 +420,7 @@ CREATE VIEW `cloud`.`volume_view` AS
420420
`cloud`.`async_job` ON async_job.instance_id = volumes.id
421421
and async_job.instance_type = 'Volume'
422422
and async_job.job_status = 0;
423-
423+
424424
DROP VIEW IF EXISTS `cloud`.`storage_pool_view`;
425425
CREATE VIEW `cloud`.`storage_pool_view` AS
426426
select
@@ -1093,3 +1093,9 @@ CREATE VIEW `cloud`.`user_vm_view` AS
10931093

10941094

10951095
INSERT IGNORE INTO `cloud`.`configuration`(category, instance, component, name, value, description, default_value) VALUES ('NetworkManager', 'DEFAULT', 'management-server', 'network.router.EnableServiceMonitoring', 'true', 'service monitoring in router enable/disable option, default true', 'true') ON DUPLICATE KEY UPDATE category='NetworkManager';
1096+
1097+
ALTER TABLE `cloud`.`service_offering_details` CHANGE `display` `display` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user';
1098+
UPDATE `cloud`.`service_offering_details` set `display`=1 where id> 0;
1099+
1100+
ALTER TABLE `cloud`.`disk_offering_details` CHANGE `display` `display` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user';
1101+
UPDATE `cloud`.`disk_offering_details` set `display`=1 where id> 0;

0 commit comments

Comments
 (0)