Fixed Java part of upgrade ccm-cms-6.6.4-6.6.5

git-svn-id: https://svn.libreccm.org/ccm/trunk@3048 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-12-13 11:07:53 +00:00
parent 2e2eb4fc9f
commit 911c302e4d
1 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ public abstract class AbstractAssocUpgrade {
getMemberIdCol(), getMemberIdCol(),
attributesBuilder.toString())); attributesBuilder.toString()));
stmt.addBatch(String.format("ALTER TABLE ONLY %s " stmt.addBatch(String.format("ALTER TABLE %s "
+ "ADD CONSTRAINT %s " + "ADD CONSTRAINT %s "
+ "PRIMARY KEY (%s, %s)", + "PRIMARY KEY (%s, %s)",
getTableName(), getTableName(),
@ -136,7 +136,7 @@ public abstract class AbstractAssocUpgrade {
getOwnerIdCol(), getOwnerIdCol(),
getMemberIdCol())); getMemberIdCol()));
stmt.addBatch(String.format("ALTER TABLE ONLY %s " stmt.addBatch(String.format("ALTER TABLE %s "
+ "ADD CONSTRAINT %s " + "ADD CONSTRAINT %s "
+ "FOREIGN KEY (%s)" + "FOREIGN KEY (%s)"
+ "REFERENCES %s(bundle_id)", + "REFERENCES %s(bundle_id)",
@ -145,7 +145,7 @@ public abstract class AbstractAssocUpgrade {
getOwnerIdCol(), getOwnerIdCol(),
getOwnerTableName())); getOwnerTableName()));
stmt.addBatch(String.format("ALTER TABLE ONLY %s " stmt.addBatch(String.format("ALTER TABLE %s "
+ "ADD CONSTRAINT %s " + "ADD CONSTRAINT %s "
+ "FOREIGN KEY (%s)" + "FOREIGN KEY (%s)"
+ "REFERENCES %s(bundle_id)", + "REFERENCES %s(bundle_id)",