You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/05/13 14:12:34 UTC
git commit: updated refs/heads/master to 256e227
Repository: cloudstack
Updated Branches:
refs/heads/master b1f2e598e -> 256e227cd
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 <ro...@shapeblue.com>
(cherry picked from commit a0cff4ca48bbd2140c35b586d42d997ad5f167b2)
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/256e227c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/256e227c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/256e227c
Branch: refs/heads/master
Commit: 256e227cd5be63186a989e2c99ded0da5e7dea71
Parents: b1f2e59
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Wed May 13 14:10:14 2015 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Wed May 13 14:11:56 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/256e227c/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;