Skip to content

Commit 952a853

Browse files
committed
CLOUDSTACK-8696: Port Rajani's regions fix to 451to452 sql upgrade path
Upgrade paths from 4.5.1 exists to both 4.5.2, and 4.6.0. Since 4.5.2 and 4.6.0 are not release, and the bug affects 4.5 branch; this patch aims to port that fix from master to both 4.5/master branches. Ported from commit b6a7804 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 869a83f commit 952a853

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

setup/db/db/schema-451to452.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ CREATE TABLE `cloud`.`saml_token` (
3333
PRIMARY KEY (`id`),
3434
CONSTRAINT `fk_saml_token__domain_id` FOREIGN KEY(`domain_id`) REFERENCES `domain`(`id`) ON DELETE CASCADE
3535
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
36+
37+
SET foreign_key_checks = 0;
38+
ALTER TABLE `cloud`.`region` MODIFY `id` int unsigned UNIQUE NOT NULL;
39+
SET foreign_key_checks = 1;

setup/db/db/schema-452to460.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,3 @@ CREATE TABLE `cloud`.`external_bigswitch_bcf_devices` (
399399
CONSTRAINT `fk_external_bigswitch_bcf_devices__physical_network_id` FOREIGN KEY (`physical_network_id`) REFERENCES `physical_network`(`id`) ON DELETE CASCADE
400400
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
401401

402-
SET foreign_key_checks = 0;
403-
ALTER TABLE `cloud`.`region` MODIFY `id` int unsigned UNIQUE NOT NULL;
404-
SET foreign_key_checks = 1;

0 commit comments

Comments
 (0)