forked from vmware-archive/springsource-cloudfoundry-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added jdbc-initialize-database to create massage tables if they don't…
… exist
- Loading branch information
Thomas Risberg
committed
Aug 31, 2011
1 parent
c03fec6
commit a77f069
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- Create MySQL message tables if they don't exist | ||
|
||
CREATE TABLE IF NOT EXISTS INT_MESSAGE ( | ||
MESSAGE_ID CHAR(36) NOT NULL PRIMARY KEY, | ||
REGION VARCHAR(100), | ||
CREATED_DATE DATETIME NOT NULL, | ||
MESSAGE_BYTES BLOB | ||
) ENGINE=InnoDB; | ||
|
||
CREATE TABLE IF NOT EXISTS INT_MESSAGE_GROUP ( | ||
MESSAGE_ID CHAR(36) NOT NULL, | ||
GROUP_KEY CHAR(36) NOT NULL, | ||
REGION VARCHAR(100), | ||
MARKED BIGINT, | ||
CREATED_DATE DATETIME NOT NULL, | ||
UPDATED_DATE DATETIME DEFAULT NULL, | ||
MESSAGE_BYTES BLOB, | ||
constraint MESSAGE_GROUP_PK primary key (MESSAGE_ID, GROUP_KEY) | ||
) ENGINE=InnoDB; |