mirror of https://github.com/apache/cloudstack.git
CS-15790 : Failed to do DB upgrade from 3.0.4 to Burbank [SQL syntax error with schema-304to305.sql script
Reviewed-by: Nitin
This commit is contained in:
parent
3b3c62d5cc
commit
7dad7b0da9
|
|
@ -344,4 +344,6 @@ ALTER TABLE `cloud`.`data_center` ADD COLUMN `is_local_storage_enabled` tinyint
|
|||
UPDATE `cloud`.`data_center` SET `is_local_storage_enabled` = IF ((SELECT `value` FROM `cloud`.`configuration` WHERE `name`='use.local.storage')='true', 1, 0) WHERE `removed` IS NULL;
|
||||
|
||||
ALTER TABLE `cloud`.`hypervisor_capabilities` ADD COLUMN `max_data_volumes_limit` int unsigned DEFAULT 6 COMMENT 'Max. data volumes per VM supported by hypervisor';
|
||||
UPDATE TABLE `cloud`.`hypervisor_capabilities` SET `max_data_volumes_limit`=13 WHERE `hypervisor_type`='XenServer' AND (`hypervisor_version`='6.0' OR `hypervisor_version`='6.0.2');
|
||||
SET SQL_SAFE_UPDATES=0;
|
||||
UPDATE `cloud`.`hypervisor_capabilities` SET `max_data_volumes_limit`=13 WHERE `hypervisor_type`='XenServer' AND (`hypervisor_version`='6.0' OR `hypervisor_version`='6.0.2');
|
||||
SET SQL_SAFE_UPDATES=1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue