Files
percona-toolkit/t/pt-online-schema-change/samples/pt-229.sql
Carlos Salguero fe51f68587 PT-229 WIP
2017-12-07 16:28:48 -03:00

15 lines
456 B
SQL

DROP DATABASE IF EXISTS test;
CREATE DATABASE test;
USE test;
CREATE TABLE `test_a` (
`test_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`column_a` varchar(80) DEFAULT NULL,
`column_b` varchar(20) DEFAULT NULL,
`active` tinyint(1) unsigned DEFAULT NULL,
`created` timestamp NULL DEFAULT NULL,
`modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`test_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;