From 8a68cd7e51cceef9b30ba47d0c8b3ed705df630e Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Mon, 9 Dec 2013 10:02:03 +0530 Subject: [PATCH] CLOUDSTACK-5214: create vm_snapshots if it does not exist --- setup/db/db/schema-410to420.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index d9560fd954e..f44ba960922 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -680,7 +680,7 @@ ALTER TABLE `cloud`.`user_vm` MODIFY user_data TEXT(32768); -- END: support for LXC -CREATE TABLE `cloud`.`vm_snapshots` ( +CREATE TABLE IF NOT EXISTS `cloud`.`vm_snapshots` ( `id` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Primary Key', `uuid` varchar(40) NOT NULL, `name` varchar(255) NOT NULL, @@ -2181,4 +2181,4 @@ CREATE VIEW `cloud`.`data_center_view` AS -UPDATE `cloud`.`ntwk_offering_service_map` SET Provider='VpcVirtualRouter' WHERE network_offering_id IN (SELECT id from `cloud`.`network_offerings` WHERE name IN ('DefaultIsolatedNetworkOfferingForVpcNetworks', 'DefaultIsolatedNetworkOfferingForVpcNetworksNoLB')); \ No newline at end of file +UPDATE `cloud`.`ntwk_offering_service_map` SET Provider='VpcVirtualRouter' WHERE network_offering_id IN (SELECT id from `cloud`.`network_offerings` WHERE name IN ('DefaultIsolatedNetworkOfferingForVpcNetworks', 'DefaultIsolatedNetworkOfferingForVpcNetworksNoLB'));