Skip to content

Commit 5f8a2ee

Browse files
committed
CLOUDSTACK-1373: Fix regression in db-schema due to recent branch merges
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent bc4abcf commit 5f8a2ee

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

setup/db/create-schema.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,6 @@ CREATE TABLE `cloud`.`vm_template` (
10491049
`source_template_id` bigint unsigned COMMENT 'Id of the original template, if this template is created from snapshot',
10501050
`template_tag` varchar(255) COMMENT 'template tag',
10511051
`sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for customising sort method',
1052-
`image_data_store_id` bigint unsigned,
10531052
PRIMARY KEY (`id`),
10541053
INDEX `i_vm_template__removed`(`removed`),
10551054
CONSTRAINT `uc_vm_template__uuid` UNIQUE (`uuid`)

setup/db/db/schema-410to420.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ CREATE TABLE `cloud`.`image_data_store` (
7575
CONSTRAINT `fk_tags__image_data_store_provider_id` FOREIGN KEY(`image_provider_id`) REFERENCES `data_store_provider`(`id`)
7676
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
7777

78+
ALTER TABLE `cloud`.`vm_template` ADD COLUMN `image_data_store_id` bigint unsigned;
7879

7980
ALTER TABLE `cloud`.`service_offering` ADD COLUMN `is_volatile` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'true if the vm needs to be volatile, i.e., on every reboot of vm from API root disk is discarded and creates a new root disk';
8081

0 commit comments

Comments
 (0)