Skip to content

Commit 0ef61f7

Browse files
committed
Set the default provisioning_type to something that doesn't cause NPEs when used.
1 parent 49b0936 commit 0ef61f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

setup/db/db/schema-440to450.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
-- Disable foreign key checking
2323
-- SET foreign_key_checks = 0;
2424

25-
ALTER TABLE `cloud`.`volumes` ADD COLUMN `provisioning_type` VARCHAR(32) NOT NULL DEFAULT 'Off' COMMENT 'pre allocation setting of the volume';
26-
ALTER TABLE `cloud`.`disk_offering` ADD COLUMN `provisioning_type` VARCHAR(32) NOT NULL DEFAULT 'Off' COMMENT 'pre allocation setting of the volume';
25+
ALTER TABLE `cloud`.`volumes` ADD COLUMN `provisioning_type` VARCHAR(32) NOT NULL DEFAULT 'thin' COMMENT 'pre allocation setting of the volume';
26+
ALTER TABLE `cloud`.`disk_offering` ADD COLUMN `provisioning_type` VARCHAR(32) NOT NULL DEFAULT 'thin' COMMENT 'pre allocation setting of the volume';
2727

2828
DROP VIEW IF EXISTS `cloud`.`disk_offering_view`;
2929
CREATE VIEW `cloud`.`disk_offering_view` AS
@@ -225,4 +225,4 @@ CREATE VIEW `cloud`.`volume_view` AS
225225
and async_job.job_status = 0;
226226

227227
/* As part of the separation of Xen and XenServer, update the column for the network labels */
228-
ALTER TABLE `cloud`.`physical_network_traffic_types` CHANGE `xen_network_label` `xenserver_network_label` varchar(255) COMMENT 'The network name label of the physical device dedicated to this traffic on a XenServer host'
228+
ALTER TABLE `cloud`.`physical_network_traffic_types` CHANGE `xen_network_label` `xenserver_network_label` varchar(255) COMMENT 'The network name label of the physical device dedicated to this traffic on a XenServer host'

0 commit comments

Comments
 (0)