Skip to content

Commit 5d043c3

Browse files
committed
move db changes to the lastest schema file
1 parent 3d8cb12 commit 5d043c3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

engine/schema/src/main/resources/META-INF/db/schema-42010to42100.sql

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -757,10 +757,3 @@ SET `cs`.`domain_id` = (
757757

758758
-- Re-apply VPC: update default network offering for vpc tier to conserve_mode=1 (#8309)
759759
UPDATE `cloud`.`network_offerings` SET conserve_mode = 1 WHERE name = 'DefaultIsolatedNetworkOfferingForVpcNetworks';
760-
761-
-- Move to 4.22
762-
-- Add uuid column to ldap_configuration table
763-
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.ldap_configuration', 'uuid', 'VARCHAR(40) NOT NULL');
764-
765-
-- Populate uuid for existing rows where uuid is NULL or empty
766-
UPDATE `cloud`.`ldap_configuration` SET uuid = UUID() WHERE uuid IS NULL OR uuid = '';

engine/schema/src/main/resources/META-INF/db/schema-42100to42200.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@
2121

2222
-- Increase length of scripts_version column to 128 due to md5sum to sha512sum change
2323
CALL `cloud`.`IDEMPOTENT_CHANGE_COLUMN`('cloud.domain_router', 'scripts_version', 'scripts_version', 'VARCHAR(128)');
24+
25+
-- Add uuid column to ldap_configuration table
26+
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.ldap_configuration', 'uuid', 'VARCHAR(40) NOT NULL');
27+
28+
-- Populate uuid for existing rows where uuid is NULL or empty
29+
UPDATE `cloud`.`ldap_configuration` SET uuid = UUID() WHERE uuid IS NULL OR uuid = '';

0 commit comments

Comments
 (0)