Allow identical batches to be sent to multiple contacts.

This commit is contained in:
akwizgran
2011-09-07 11:15:34 +01:00
parent e80ede4429
commit 0a84a01235
2 changed files with 49 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ abstract class JdbcDatabase implements Database<Connection> {
+ " (batchId HASH NOT NULL,"
+ " contactId INT NOT NULL,"
+ " messageId HASH NOT NULL,"
+ " PRIMARY KEY (batchId, messageId),"
+ " PRIMARY KEY (batchId, contactId, messageId),"
+ " FOREIGN KEY (batchId, contactId)"
+ " REFERENCES outstandingBatches (batchId, contactId)"
+ " ON DELETE CASCADE,"