Skip to content

Commit 308b7a5

Browse files
committed
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
1 parent de6bf74 commit 308b7a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup/db/db/schema-430to440.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
-- Disable foreign key checking
2323
SET foreign_key_checks = 0;
2424

25-
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';
25+
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';
2626

2727
DROP VIEW IF EXISTS `cloud`.`disk_offering_view`;
2828
CREATE VIEW `cloud`.`disk_offering_view` AS

0 commit comments

Comments
 (0)