CLOUDSTACK-1373: Fix regression in db-schema due to recent branch merges

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-22 19:11:40 +05:30
parent bc4abcf14d
commit 5f8a2ee9be
2 changed files with 1 additions and 1 deletions

View File

@ -1049,7 +1049,6 @@ CREATE TABLE `cloud`.`vm_template` (
`source_template_id` bigint unsigned COMMENT 'Id of the original template, if this template is created from snapshot', `source_template_id` bigint unsigned COMMENT 'Id of the original template, if this template is created from snapshot',
`template_tag` varchar(255) COMMENT 'template tag', `template_tag` varchar(255) COMMENT 'template tag',
`sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for customising sort method', `sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for customising sort method',
`image_data_store_id` bigint unsigned,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
INDEX `i_vm_template__removed`(`removed`), INDEX `i_vm_template__removed`(`removed`),
CONSTRAINT `uc_vm_template__uuid` UNIQUE (`uuid`) CONSTRAINT `uc_vm_template__uuid` UNIQUE (`uuid`)

View File

@ -75,6 +75,7 @@ CREATE TABLE `cloud`.`image_data_store` (
CONSTRAINT `fk_tags__image_data_store_provider_id` FOREIGN KEY(`image_provider_id`) REFERENCES `data_store_provider`(`id`) CONSTRAINT `fk_tags__image_data_store_provider_id` FOREIGN KEY(`image_provider_id`) REFERENCES `data_store_provider`(`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `cloud`.`vm_template` ADD COLUMN `image_data_store_id` bigint unsigned;
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'; 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';