CLOUDSTACK-5214: create vm_snapshots if it does not exist

This commit is contained in:
Abhinandan Prateek 2013-12-09 10:02:03 +05:30
parent 1190abd4ca
commit 8a68cd7e51
1 changed files with 2 additions and 2 deletions

View File

@ -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'));
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'));