--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE='tokudb'; 

--disable_warnings 
DROP TABLE IF EXISTS foo,bar; 
--enable_warnings 

set session tokudb_disable_slow_alter=ON; 

let $diff_tables= test.foo, test.bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL;
alter table bar add column added_1 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1;
alter table bar add column added_2 bigint default -1;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1;
alter table bar add column added_3 bigint NOT NULL default -1;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL;
alter table bar add column added_4 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty";
alter table bar add column added_5 varchar(10) default "qwerty";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt";
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL;
alter table bar add column added_7 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL;
alter table bar add column added_8 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first;
alter table bar add column added_1 bigint default NULL first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first;
alter table bar add column added_2 bigint default -1 first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first;
alter table bar add column added_3 bigint NOT NULL default -1 first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first;
alter table bar add column added_4 varchar(10) default NULL first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first;
alter table bar add column added_5 varchar(10) default "qwerty" first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first;
alter table bar add column added_7 text default NULL first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first;
alter table bar add column added_8 mediumtext default NULL first;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b;
alter table bar add column added_1 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b;
alter table bar add column added_2 bigint default -1 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b;
alter table bar add column added_4 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b;
alter table bar add column added_7 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b;
alter table bar add column added_8 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_11 bigint default NULL;
alter table bar add column added_1 bigint default NULL, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_21 bigint default 1234;
alter table bar add column added_1 bigint default NULL, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_1 bigint default NULL, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL;
alter table bar add column added_1 bigint default NULL, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_1 bigint default NULL, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_1 bigint default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_71 text default NULL;
alter table bar add column added_1 bigint default NULL, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_81 mediumtext default NULL;
alter table bar add column added_1 bigint default NULL, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_11 bigint default NULL;
alter table bar add column added_2 bigint default -1, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_21 bigint default 1234;
alter table bar add column added_2 bigint default -1, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_2 bigint default -1, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_41 varchar(10) default NULL;
alter table bar add column added_2 bigint default -1, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_2 bigint default -1, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_2 bigint default -1, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_71 text default NULL;
alter table bar add column added_2 bigint default -1, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1, add column added_81 mediumtext default NULL;
alter table bar add column added_2 bigint default -1, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL;
alter table bar add column added_3 bigint NOT NULL default -1, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234;
alter table bar add column added_3 bigint NOT NULL default -1, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_3 bigint NOT NULL default -1, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL;
alter table bar add column added_3 bigint NOT NULL default -1, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_3 bigint NOT NULL default -1, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_3 bigint NOT NULL default -1, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL;
alter table bar add column added_3 bigint NOT NULL default -1, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL;
alter table bar add column added_3 bigint NOT NULL default -1, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL;
alter table bar add column added_4 varchar(10) default NULL, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234;
alter table bar add column added_4 varchar(10) default NULL, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_4 varchar(10) default NULL, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL;
alter table bar add column added_4 varchar(10) default NULL, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_4 varchar(10) default NULL, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_4 varchar(10) default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_71 text default NULL;
alter table bar add column added_4 varchar(10) default NULL, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL;
alter table bar add column added_4 varchar(10) default NULL, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL;
alter table bar add column added_5 varchar(10) default "qwerty", add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234;
alter table bar add column added_5 varchar(10) default "qwerty", add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54;
alter table bar add column added_5 varchar(10) default "qwerty", add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL;
alter table bar add column added_5 varchar(10) default "qwerty", add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab";
alter table bar add column added_5 varchar(10) default "qwerty", add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_5 varchar(10) default "qwerty", add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL;
alter table bar add column added_5 varchar(10) default "qwerty", add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL;
alter table bar add column added_5 varchar(10) default "qwerty", add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab";
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt", add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_11 bigint default NULL;
alter table bar add column added_7 text default NULL, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_21 bigint default 1234;
alter table bar add column added_7 text default NULL, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_7 text default NULL, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_41 varchar(10) default NULL;
alter table bar add column added_7 text default NULL, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_7 text default NULL, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_7 text default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_71 text default NULL;
alter table bar add column added_7 text default NULL, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL, add column added_81 mediumtext default NULL;
alter table bar add column added_7 text default NULL, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_11 bigint default NULL;
alter table bar add column added_8 mediumtext default NULL, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_21 bigint default 1234;
alter table bar add column added_8 mediumtext default NULL, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_8 mediumtext default NULL, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL;
alter table bar add column added_8 mediumtext default NULL, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_8 mediumtext default NULL, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_8 mediumtext default NULL, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_71 text default NULL;
alter table bar add column added_8 mediumtext default NULL, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL;
alter table bar add column added_8 mediumtext default NULL, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_11 bigint default NULL;
alter table bar add column added_1 bigint default NULL first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_21 bigint default 1234;
alter table bar add column added_1 bigint default NULL first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_1 bigint default NULL first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL;
alter table bar add column added_1 bigint default NULL first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_1 bigint default NULL first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_1 bigint default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_71 text default NULL;
alter table bar add column added_1 bigint default NULL first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL;
alter table bar add column added_1 bigint default NULL first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_11 bigint default NULL;
alter table bar add column added_2 bigint default -1 first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_21 bigint default 1234;
alter table bar add column added_2 bigint default -1 first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_2 bigint default -1 first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL;
alter table bar add column added_2 bigint default -1 first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_2 bigint default -1 first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_2 bigint default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_71 text default NULL;
alter table bar add column added_2 bigint default -1 first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL;
alter table bar add column added_2 bigint default -1 first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL;
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234;
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL;
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL;
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL;
alter table bar add column added_3 bigint NOT NULL default -1 first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL;
alter table bar add column added_4 varchar(10) default NULL first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234;
alter table bar add column added_4 varchar(10) default NULL first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_4 varchar(10) default NULL first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL;
alter table bar add column added_4 varchar(10) default NULL first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_4 varchar(10) default NULL first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_4 varchar(10) default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_71 text default NULL;
alter table bar add column added_4 varchar(10) default NULL first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL;
alter table bar add column added_4 varchar(10) default NULL first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL;
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234;
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL;
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL;
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL;
alter table bar add column added_5 varchar(10) default "qwerty" first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_11 bigint default NULL;
alter table bar add column added_7 text default NULL first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_21 bigint default 1234;
alter table bar add column added_7 text default NULL first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_7 text default NULL first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_41 varchar(10) default NULL;
alter table bar add column added_7 text default NULL first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_7 text default NULL first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_7 text default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_71 text default NULL;
alter table bar add column added_7 text default NULL first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL first, add column added_81 mediumtext default NULL;
alter table bar add column added_7 text default NULL first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL;
alter table bar add column added_8 mediumtext default NULL first, add column added_11 bigint default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234;
alter table bar add column added_8 mediumtext default NULL first, add column added_21 bigint default 1234;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54;
alter table bar add column added_8 mediumtext default NULL first, add column added_31 bigint NOT NULL default 54;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL;
alter table bar add column added_8 mediumtext default NULL first, add column added_41 varchar(10) default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab";
alter table bar add column added_8 mediumtext default NULL first, add column added_51 varchar(10) default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
alter table bar add column added_8 mediumtext default NULL first, add column added_61 varchar(10) NOT NULL default "abracadab";
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_71 text default NULL;
alter table bar add column added_8 mediumtext default NULL first, add column added_71 text default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL;
alter table bar add column added_8 mediumtext default NULL first, add column added_81 mediumtext default NULL;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b;
alter table bar add column added_1 bigint default NULL after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_1 bigint default NULL after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_1 bigint default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_1 bigint default NULL after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_1 bigint default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_1 bigint default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_71 text default NULL after b;
alter table bar add column added_1 bigint default NULL after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_1 bigint default NULL after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b;
alter table bar add column added_2 bigint default -1 after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_2 bigint default -1 after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_2 bigint default -1 after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_2 bigint default -1 after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_2 bigint default -1 after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_2 bigint default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_71 text default NULL after b;
alter table bar add column added_2 bigint default -1 after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_2 bigint default -1 after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_3 bigint NOT NULL default -1 after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_4 varchar(10) default NULL after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_5 varchar(10) default "qwerty" after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_6 varchar(10) NOT NULL default "ruyrtt" after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_11 bigint default NULL after b;
alter table bar add column added_7 text default NULL after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_7 text default NULL after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_7 text default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_7 text default NULL after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_7 text default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_7 text default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_71 text default NULL after b;
alter table bar add column added_7 text default NULL after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_7 text default NULL after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_11 bigint default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_21 bigint default 1234 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_31 bigint NOT NULL default 54 after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_41 varchar(10) default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_51 varchar(10) default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_61 varchar(10) NOT NULL default "abracadab" after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_71 text default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b;
alter table bar add column added_8 mediumtext default NULL after b, add column added_81 mediumtext default NULL after b;
source include/diff_tables.inc;
drop table foo; drop table bar;


create table foo (a int, b bigint, c date, d tinyint, aa blob, bb longblob, cc tinyblob, dd mediumblob) engine=TokuDB;
create table bar like foo;
alter table bar engine=MyISAM;
insert into foo values (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
insert into foo values (NULL,NULL,NULL,NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,NULL,NULL,NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,NULL,NULL,NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,NULL,NULL,NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (-1,NULL,'2008-1-1',NULL,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (-1,NULL,'2008-1-1',NULL,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (NULL,12345678987,NULL,1,NULL,NULL,NULL,NULL);
insert into foo values (NULL,12345678987,NULL,1,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (NULL,12345678987,NULL,1,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (NULL,12345678987,NULL,1,"rewoiu","fds","fr","oiufdsrew");
insert into foo values (2,20,'1999-11-11',0,NULL,NULL,NULL,NULL);
insert into foo values (2,20,'1999-11-11',0,"adsf",NULL,"hjfdshj",NULL);
insert into foo values (2,20,'1999-11-11',0,NULL,"oifds",NULL,"fdsjfds");
insert into foo values (2,20,'1999-11-11',0,"rewoiu","fds","fr","oiufdsrew");
insert into bar select * from foo;
source include/diff_tables.inc;
alter table foo add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1;
alter table bar add column added_1 bigint default NULL, add column added_2 bigint default -1 after b, add column added_3 bigint NOT NULL default -1;
source include/diff_tables.inc;
drop table foo; drop table bar;
