This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for CREATE TABLE with KEY statement
- Loading branch information
John Eckhart
committed
Mar 29, 2015
1 parent
b3d21b8
commit c6605d0
Showing
2 changed files
with
15 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
10 changes: 10 additions & 0 deletions
10
converter/src/test/resources/scripts/create-table-with-key.sql
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,10 @@ | ||
|
||
CREATE TABLE `sample` ( | ||
`ID` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`VALUE` text, | ||
`TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
`version` int(11) NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`ID`), | ||
UNIQUE KEY `PK_SAMPLE` (`ID`), | ||
KEY `TIME` (`TIME`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='A sample table.'; |