Updated Branches: refs/heads/4.1 3e2986492 -> 7da92314a
CLOUDSTACK-1355: Don't check foreign key constraint during db upgrades Signed-off-by: Rohit Yadav <[email protected]> (cherry picked partially from commit 54f7933f113841e9d17a420c40d6ff2203c43290) Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/7da92314 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/7da92314 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/7da92314 Branch: refs/heads/4.1 Commit: 7da92314adca5c8171f584e2acb26cfe7610ac18 Parents: 3e29864 Author: Rohit Yadav <[email protected]> Authored: Fri Feb 22 19:28:07 2013 +0530 Committer: Rohit Yadav <[email protected]> Committed: Fri Feb 22 19:30:07 2013 +0530 ---------------------------------------------------------------------- setup/db/db/schema-40to410.sql | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/7da92314/setup/db/db/schema-40to410.sql ---------------------------------------------------------------------- diff --git a/setup/db/db/schema-40to410.sql b/setup/db/db/schema-40to410.sql index 25aa37a..d7c0789 100644 --- a/setup/db/db/schema-40to410.sql +++ b/setup/db/db/schema-40to410.sql @@ -20,6 +20,7 @@ --; use cloud; +SET foreign_key_checks = 0; alter table vm_template add image_data_store_id bigint unsigned; alter table vm_template add size bigint unsigned; @@ -1693,3 +1694,5 @@ CREATE TABLE `cloud`.`baremetal_pxe_devices` ( `host_id` bigint unsigned DEFAULT NULL COMMENT 'host id coresponding to the external pxe device', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +SET foreign_key_checks = 1;
