2012-10-03 22:35:02 +00:00
|
|
|
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
|
2011-04-21 01:15:12 +00:00
|
|
|
DROP TABLE IF EXISTS foo,bar;
|
|
|
|
set session tokudb_disable_slow_alter=ON;
|
|
|
|
create table foo (a bigint, b bigint);
|
|
|
|
create table bar (a int);
|
|
|
|
alter table foo drop column a;
|
|
|
|
alter table bar add column b int, add column c int;
|
|
|
|
show create table foo;
|
|
|
|
Table Create Table
|
|
|
|
foo CREATE TABLE `foo` (
|
|
|
|
`b` bigint(20) DEFAULT NULL
|
2012-03-19 15:01:11 +00:00
|
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
2011-04-21 01:15:12 +00:00
|
|
|
show create table bar;
|
|
|
|
Table Create Table
|
|
|
|
bar CREATE TABLE `bar` (
|
|
|
|
`a` int(11) DEFAULT NULL,
|
|
|
|
`b` int(11) DEFAULT NULL,
|
|
|
|
`c` int(11) DEFAULT NULL
|
2012-03-19 15:01:11 +00:00
|
|
|
) ENGINE=TokuDB DEFAULT CHARSET=latin1
|
2011-04-21 01:15:12 +00:00
|
|
|
DROP TABLE foo,bar;
|