From a506bf1f2e6ac0266b1cb681923d24ad8a915849 Mon Sep 17 00:00:00 2001 From: Layon <144072822+LayonRibeiro@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:15:56 -0300 Subject: [PATCH] refactor schema-41910to42000.sql (#9680) Co-authored-by: layon.oliveira --- .../src/main/resources/META-INF/db/schema-41910to42000.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/schema/src/main/resources/META-INF/db/schema-41910to42000.sql b/engine/schema/src/main/resources/META-INF/db/schema-41910to42000.sql index a9f7b394e026..c36b71c2f250 100644 --- a/engine/schema/src/main/resources/META-INF/db/schema-41910to42000.sql +++ b/engine/schema/src/main/resources/META-INF/db/schema-41910to42000.sql @@ -193,8 +193,8 @@ CREATE TABLE `cloud`.`ip4_guest_subnet_network_map` ( CONSTRAINT `uc_ip4_guest_subnet_network_map__uuid` UNIQUE (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -ALTER TABLE `cloud`.`network_offerings` RENAME COLUMN `nsx_mode` TO `network_mode`; -ALTER TABLE `cloud`.`vpc_offerings` RENAME COLUMN `nsx_mode` TO `network_mode`; +CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('network_offerings', 'nsx_mode', 'network_mode', 'varchar(32) COMMENT "mode in which the network would route traffic"'); +CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('vpc_offerings', 'nsx_mode', 'network_mode', 'varchar(32) COMMENT "mode in which the network would route traffic"'); ALTER TABLE `cloud`.`event` MODIFY COLUMN `type` varchar(50) NOT NULL; -- Add tables for AS Numbers and range