CLOUDSTACK-1302: Allow cache_mode to be NULL in the database

Not allowing this field to be NULL broke master due to the default
data which gets loaded into the database during initial startup of the
management server.

During generation of the XML for the VM it will however default to
'none' if NULL is passed
This commit is contained in:
Wido den Hollander 2013-11-21 18:59:31 +01:00
parent de6bf7470c
commit 308b7a5c37

View File

@ -22,7 +22,7 @@
-- Disable foreign key checking
SET foreign_key_checks = 0;
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`.`disk_offering` ADD `cache_mode` VARCHAR( 16 ) DEFAULT 'none' COMMENT 'The disk cache mode to use for disks created with this offering';
DROP VIEW IF EXISTS `cloud`.`disk_offering_view`;
CREATE VIEW `cloud`.`disk_offering_view` AS