mirror of https://github.com/apache/activemq.git
Merge pull request #232 from sturman/master
set name for primary key on create table
This commit is contained in:
commit
b977f8c629
|
@ -106,7 +106,7 @@ public class Statements {
|
|||
+ ", SUB_DEST " + stringIdDataType
|
||||
+ ", CLIENT_ID " + stringIdDataType + " NOT NULL" + ", SUB_NAME " + stringIdDataType
|
||||
+ " NOT NULL" + ", SELECTOR " + stringIdDataType + ", LAST_ACKED_ID " + sequenceDataType
|
||||
+ ", PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME))",
|
||||
+ ", CONSTRAINT PK_" + getDurableSubAcksTableName() + " PRIMARY KEY ( CONTAINER, CLIENT_ID, SUB_NAME))",
|
||||
"ALTER TABLE " + getFullMessageTableName() + " ADD PRIORITY " + sequenceDataType,
|
||||
"CREATE INDEX " + getFullMessageTableName() + "_PIDX ON " + getFullMessageTableName() + " (PRIORITY)",
|
||||
"ALTER TABLE " + getFullMessageTableName() + " ADD XID " + stringIdDataType,
|
||||
|
|
|
@ -35,6 +35,7 @@ public class TransactJDBCAdapter extends ImageBasedJDBCAdaptor {
|
|||
}
|
||||
|
||||
statements.setLockCreateStatement(lockCreateStatement);
|
||||
statements.setDropAckPKAlterStatementEnd("DROP CONSTRAINT PK_" + statements.getDurableSubAcksTableName());
|
||||
|
||||
super.setStatements(statements);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue