mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Properly set template state to either Active or Inactive in
schema-420to430.sql.
This commit is contained in:
parent
25281ae7a7
commit
0720139117
@ -101,6 +101,10 @@ ALTER TABLE `cloud`.`disk_offering` ADD COLUMN `state` CHAR(40) NOT NULL DEFAULT
|
||||
UPDATE `cloud`.`disk_offering` SET `state`='Inactive' WHERE `removed` IS NOT NULL;
|
||||
UPDATE `cloud`.`disk_offering` SET `removed`=NULL;
|
||||
|
||||
UPDATE `cloud`.`vm_template` SET `state`='Inactive' WHERE `removed` IS NOT NULL;
|
||||
UPDATE `cloud`.`vm_template` SET `state`='Active' WHERE `removed` IS NULL;
|
||||
UPDATE `cloud`.`vm_template` SET `removed`=NULL;
|
||||
|
||||
DROP VIEW IF EXISTS `cloud`.`disk_offering_view`;
|
||||
CREATE VIEW `cloud`.`disk_offering_view` AS
|
||||
select
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user