@@ -301,7 +301,7 @@ CALL `cloud`.`IDEMPOTENT_DROP_FOREIGN_KEY`('cloud.service_offering','fk_service_
301301CALL ` cloud` .` IDEMPOTENT_ADD_FOREIGN_KEY` (' cloud.service_offering' , ' fk_service_offering__vgpu_profile_id' , ' (vgpu_profile_id)' , ' `vgpu_profile`(`id`)' );
302302
303303-- Netris Plugin
304- CREATE TABLE `cloud `.` netris_providers` (
304+ CREATE TABLE IF NOT EXISTS ` cloud` .` netris_providers` (
305305 ` id` bigint unsigned NOT NULL auto_increment COMMENT ' id' ,
306306 ` uuid` varchar (40 ),
307307 ` zone_id` bigint unsigned NOT NULL COMMENT ' Zone ID' ,
@@ -321,11 +321,11 @@ CREATE TABLE `cloud`.`netris_providers` (
321321) ENGINE= InnoDB DEFAULT CHARSET= utf8;
322322
323323-- Drop the Tungsten and NSX columns from the network offerings (replaced by checking the provider on the ntwk_offering_service_map table)
324- ALTER TABLE ` cloud` .` network_offerings ` DROP COLUMN ` for_tungsten` ;
325- ALTER TABLE ` cloud` .` network_offerings ` DROP COLUMN ` for_nsx` ;
324+ CALL ` cloud` .` IDEMPOTENT_DROP_COLUMN ` ( ' cloud.network_offerings ' , ' for_tungsten' ) ;
325+ CALL ` cloud` .` IDEMPOTENT_DROP_COLUMN ` ( ' cloud.network_offerings ' , ' for_nsx' ) ;
326326
327327-- Drop the Tungsten and NSX columns from the VPC offerings (replaced by checking the provider on the vpc_offering_service_map table)
328- ALTER TABLE ` cloud` .` vpc_offerings ` DROP COLUMN ` for_nsx` ;
328+ CALL ` cloud` .` IDEMPOTENT_DROP_COLUMN ` ( ' cloud.vpc_offerings ' , ' for_nsx' ) ;
329329
330330-- Add next_hop to the static_routes table
331331CALL ` cloud` .` IDEMPOTENT_ADD_COLUMN` (' cloud.static_routes' , ' next_hop' , ' varchar(50) COMMENT "next hop of the static route" AFTER `vpc_gateway_id`' );
0 commit comments