From 67e1eee981dd028a9717ade05852d17b89d88604 Mon Sep 17 00:00:00 2001 From: abhishek Date: Mon, 23 Aug 2010 16:27:40 -0700 Subject: [PATCH] Adding to migration script --- setup/db/migration/schema-21to22.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/db/migration/schema-21to22.sql b/setup/db/migration/schema-21to22.sql index 108ed2a9e20..dff1e91ae52 100644 --- a/setup/db/migration/schema-21to22.sql +++ b/setup/db/migration/schema-21to22.sql @@ -7,3 +7,5 @@ ALTER TABLE `cloud`.`data_center` MODIFY COLUMN `guest_network_cidr` varchar(18) ALTER TABLE `cloud`.`resource_count` ADD COLUMN `domain_id` bigint unsigned; -- add the new column ALTER TABLE `cloud`.`resource_count` MODIFY COLUMN `account_id` bigint unsigned; -- modify the column to allow NULL values ALTER TABLE `cloud`.`storage_pool` add COLUMN STATUS varchar(32) not null; -- new status column for maintenance mode support for primary storage +ALTER TABLE `cloud`.`volumes` ADD COLUMN `source_id` bigint unsigned; -- id for the source +ALTER TABLE `cloud`.`volumes` ADD COLUMN `source_type` varchar(32); --source from which the volume is created i.e. snapshot, diskoffering, template, blank