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:33:11 UTC

git commit: updated refs/heads/master to db154a0

Repository: cloudstack
Updated Branches:
  refs/heads/master 0babb92d6 -> db154a0d7


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/db154a0d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/db154a0d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/db154a0d

Branch: refs/heads/master
Commit: db154a0d7937d1c01c561e510bac8c7ed74e7130
Parents: 0babb92
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:32:44 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/db154a0d/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) {