mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
43 lines
1.4 KiB
SQL
43 lines
1.4 KiB
SQL
DROP DATABASE IF EXISTS issue_1152;
|
|
DROP DATABASE IF EXISTS issue_1152_archive;
|
|
CREATE DATABASE issue_1152;
|
|
CREATE DATABASE issue_1152_archive;
|
|
|
|
USE issue_1152;
|
|
CREATE TABLE `t` (
|
|
`LineTestID` bigint(19) unsigned NOT NULL AUTO_INCREMENT,
|
|
`JobCreatedTime` bigint(20) unsigned DEFAULT NULL,
|
|
`JobScheduledTime` bigint(20) unsigned DEFAULT NULL,
|
|
`JobStartTime` bigint(20) unsigned DEFAULT NULL,
|
|
-- `JobFinishTime` bigint(20) unsigned DEFAULT NULL,
|
|
-- `Priority` tinyint(3) unsigned DEFAULT NULL,
|
|
-- `JobType` tinyint(3) unsigned DEFAULT NULL,
|
|
-- `TerminationNumber` varchar(40) NOT NULL,
|
|
PRIMARY KEY (`LineTestID`)
|
|
-- KEY `index1` (`JobScheduledTime`,`TerminationNumber`)
|
|
) ENGINE=InnoDB;
|
|
INSERT INTO issue_1152.t VALUES
|
|
(null, 1, 2, 3),
|
|
(null, 2, 2, 3),
|
|
(null, 3, 2, 7),
|
|
(null, 4, 2, 3),
|
|
(null, 5, 2, 3),
|
|
(null, 6, 2, 3),
|
|
(null, 7, 2, 3),
|
|
(null, 8, 2, 3),
|
|
(null, 9, 2, 3),
|
|
(null, 10, 2, 3);
|
|
|
|
USE issue_1152_archive;
|
|
CREATE TABLE t (
|
|
`JobCreatedTime` bigint(20) unsigned DEFAULT NULL,
|
|
`JobScheduledTime` bigint(20) unsigned DEFAULT NULL,
|
|
`JobStartTime` bigint(20) unsigned DEFAULT NULL
|
|
-- `JobFinishTime` bigint(20) unsigned DEFAULT NULL,
|
|
-- `Priority` tinyint(3) unsigned DEFAULT NULL,
|
|
-- `JobType` tinyint(3) unsigned DEFAULT NULL,
|
|
-- `TerminationNumber` varchar(40) NOT NULL,
|
|
-- PRIMARY KEY (`LineTestID`),
|
|
-- KEY `index1` (`JobScheduledTime`,`TerminationNumber`)
|
|
) ENGINE=InnoDB;
|