Skip to content

Commit 8a68cd7

Browse files
author
Abhinandan Prateek
committed
CLOUDSTACK-5214: create vm_snapshots if it does not exist
1 parent 1190abd commit 8a68cd7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ ALTER TABLE `cloud`.`user_vm` MODIFY user_data TEXT(32768);
680680

681681
-- END: support for LXC
682682

683-
CREATE TABLE `cloud`.`vm_snapshots` (
683+
CREATE TABLE IF NOT EXISTS `cloud`.`vm_snapshots` (
684684
`id` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Primary Key',
685685
`uuid` varchar(40) NOT NULL,
686686
`name` varchar(255) NOT NULL,
@@ -2181,4 +2181,4 @@ CREATE VIEW `cloud`.`data_center_view` AS
21812181

21822182

21832183

2184-
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'));
2184+
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'));

0 commit comments

Comments
 (0)