Skip to content

Commit f850b38

Browse files
committed
Merge pull request #1831 from shapeblue/fix-sql-pr-1615-410
CLOUDSTACK-9671: Fix sql change to corresponding version paths- Fixes issue of failing upgrade paths - Moves schema changes from PR #1615 in the 4.9.1.0 to 4.10.0.0 sql path * pr/1831: CLOUDSTACK-9671: Fix sql change to corresponding version paths Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 parents 17653a8 + dd321a6 commit f850b38

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup/db/db/schema-481to490.sql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,3 @@ INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervis
546546
INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), 'VMware', '5.1', 'centos64Guest', 228, now(), 0);
547547
INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), 'VMware', '5.5', 'centos64Guest', 228, now(), 0);
548548

549-
ALTER TABLE `cloud`.`image_store_details` CHANGE COLUMN `value` `value` VARCHAR(255) NULL DEFAULT NULL COMMENT 'value of the detail', ADD COLUMN `display` tinyint(1) NOT
550-
NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user' AFTER `value`;
551-
552-
ALTER TABLE `snapshots` ADD COLUMN `location_type` VARCHAR(32) COMMENT 'Location of snapshot (ex. Primary)';

setup/db/db/schema-4910to41000.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ CREATE TABLE `cloud`.`vlan_details` (
4848
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
4949

5050
ALTER TABLE `cloud`.`network_offerings` ADD COLUMN supports_public_access boolean default false;
51+
52+
ALTER TABLE `cloud`.`image_store_details` CHANGE COLUMN `value` `value` VARCHAR(255) NULL DEFAULT NULL COMMENT 'value of the detail', ADD COLUMN `display` tinyint(1) NOT
53+
NULL DEFAULT '1' COMMENT 'True if the detail can be displayed to the end user' AFTER `value`;
54+
55+
ALTER TABLE `snapshots` ADD COLUMN `location_type` VARCHAR(32) COMMENT 'Location of snapshot (ex. Primary)';

0 commit comments

Comments
 (0)