You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/05/05 20:34:44 UTC

git commit: updated refs/heads/4.4 to a521c02

Repository: cloudstack
Updated Branches:
  refs/heads/4.4 f8419b930 -> a521c02c5


CLOUDSTACK-5976: Typo in "ssh_keypairs" table's foreign key constraints
on the Upgraded Setup


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a521c02c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a521c02c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a521c02c

Branch: refs/heads/4.4
Commit: a521c02c54dc670b48d9e5d81fb51e688f6f36a8
Parents: f8419b9
Author: Harikrishna Patnala <ha...@citrix.com>
Authored: Mon May 5 20:32:44 2014 +0200
Committer: Daan Hoogland <da...@onecht.net>
Committed: Mon May 5 20:34:20 2014 +0200

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade302to40.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a521c02c/engine/schema/src/com/cloud/upgrade/dao/Upgrade302to40.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade302to40.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade302to40.java
index ab5d213..5ce8f36 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade302to40.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade302to40.java
@@ -684,7 +684,7 @@ public class Upgrade302to40 extends Upgrade30xBase implements DbUpgrade {
             PreparedStatement pstmt;
             pstmt =
                 conn.prepareStatement("ALTER TABLE `cloud`.`ssh_keypairs` ADD "
-                    + "CONSTRAINT `fk_ssh_keypair__account_id` FOREIGN KEY `fk_ssh_keypair__account_id` (`account_id`)"
+                    + "CONSTRAINT `fk_ssh_keypairs__account_id` FOREIGN KEY `fk_ssh_keypairs__account_id` (`account_id`)"
                     + " REFERENCES `account` (`id`) ON DELETE CASCADE");
             pstmt.executeUpdate();
             pstmt.close();
@@ -696,7 +696,7 @@ public class Upgrade302to40 extends Upgrade30xBase implements DbUpgrade {
             PreparedStatement pstmt;
             pstmt =
                 conn.prepareStatement("ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT"
-                    + " `fk_ssh_keypair__domain_id` FOREIGN KEY `fk_ssh_keypair__domain_id` (`domain_id`) " + "REFERENCES `domain` (`id`) ON DELETE CASCADE");
+                    + " `fk_ssh_keypairs__domain_id` FOREIGN KEY `fk_ssh_keypairs__domain_id` (`domain_id`) " + "REFERENCES `domain` (`id`) ON DELETE CASCADE");
             pstmt.executeUpdate();
             pstmt.close();
         } catch (SQLException e) {