Files
percona-toolkit/t/pt-table-sync/samples/issue_22.sql
Carlos Salguero f6d2e89027 Fixed all tests for MySQL 5.7
Most of the failing tests were failing due to changes in MySQL 5.7
default sql_mode and because of invalid timestamps ('0000-00-00')
2017-05-03 15:48:11 -03:00

15 lines
485 B
SQL

DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`MID` int(20) NOT NULL default '0',
`TID` bigint(20) NOT NULL default '0',
`AUTHOR` varchar(32) NOT NULL default '',
`DATE` datetime NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`INTERNAL` char(1) NOT NULL default '0',
`ISOPER` char(1) NOT NULL default '0',
`HEADERS` text NOT NULL,
`MSG` text NOT NULL,
PRIMARY KEY (`MID`),
UNIQUE KEY `ID` (`MID`),
KEY `TID` (`TID`)
) ENGINE=MyISAM;