Repository: cloudstack Updated Branches: refs/heads/4.3 7939787ef -> 5de04025a
schema: fix foreign key checks for 3.0.7 to 4.1.0 upgrade path Without this upgrades from 3.0.7 version fails. Signed-off-by: Rohit Yadav <[email protected]> (cherry picked from commit a0cff4ca48bbd2140c35b586d42d997ad5f167b2) Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5de04025 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5de04025 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5de04025 Branch: refs/heads/4.3 Commit: 5de04025a6f4c3907249f1858fe76078e6c99cc6 Parents: 7939787 Author: Rohit Yadav <[email protected]> Authored: Wed May 13 14:10:14 2015 +0200 Committer: Rohit Yadav <[email protected]> Committed: Wed May 13 14:13:48 2015 +0200 ---------------------------------------------------------------------- setup/db/db/schema-307to410.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5de04025/setup/db/db/schema-307to410.sql ---------------------------------------------------------------------- diff --git a/setup/db/db/schema-307to410.sql b/setup/db/db/schema-307to410.sql index 7feb53e..5624f00 100644 --- a/setup/db/db/schema-307to410.sql +++ b/setup/db/db/schema-307to410.sql @@ -20,6 +20,7 @@ --; +SET foreign_key_checks = 0; -- DB upgrade steps from 302-40 CREATE TABLE `cloud`.`external_nicira_nvp_devices` ( @@ -1508,7 +1509,6 @@ CREATE TABLE `cloud`.`ucs_manager` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -SET foreign_key_checks = 1; UPDATE `cloud`.`configuration` SET value='KVM,XenServer,VMware,Ovm' WHERE name='hypervisor.list'; @@ -1585,3 +1585,5 @@ ALTER TABLE `cloud_usage`.`cloud_usage` CHANGE COLUMN `virtual_size` `virtual_si ALTER TABLE `cloud`.`network_offerings` CHANGE COLUMN `concurrent_connections` `concurrent_connections1` int(10) unsigned COMMENT 'Load Balancer(haproxy) maximum number of concurrent connections(global max)'; ALTER TABLE `cloud`.`volumes` CHANGE COLUMN `iso_id` `iso_id1` bigint(20) unsigned COMMENT 'The id of the iso from which the volume was created'; + +SET foreign_key_checks = 1;
