Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions localtests/datetime-to-timestamp-pk-fail/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ create table gh_ost_test (
id int unsigned auto_increment,
i int not null,
ts0 timestamp default current_timestamp,
ts1 timestamp,
ts1 timestamp null,
dt2 datetime,
t datetime,
t datetime default current_timestamp,
updated tinyint unsigned default 0,
primary key(id, t),
key i_idx(i)
Expand Down
2 changes: 1 addition & 1 deletion localtests/datetime-to-timestamp-pk-fail/extra_args
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--alter="change column t t timestamp not null"
--alter="change column t t timestamp default current_timestamp"
4 changes: 2 additions & 2 deletions localtests/datetime-to-timestamp/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ create table gh_ost_test (
id int unsigned auto_increment,
i int not null,
ts0 timestamp default current_timestamp,
ts1 timestamp,
ts1 timestamp null,
dt2 datetime,
t datetime,
t datetime null,
updated tinyint unsigned default 0,
primary key(id),
key i_idx(i)
Expand Down
2 changes: 1 addition & 1 deletion localtests/datetime-to-timestamp/extra_args
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--alter="change column t t timestamp not null"
--alter="change column t t timestamp null"
2 changes: 1 addition & 1 deletion localtests/enum-pk/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
i int not null,
e enum('red', 'green', 'blue', 'orange') null default null collate 'utf8_bin',
e enum('red', 'green', 'blue', 'orange') not null default 'red' collate 'utf8_bin',
primary key(id, e)
) auto_increment=1;

Expand Down
2 changes: 1 addition & 1 deletion localtests/timestamp-to-datetime/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ create table gh_ost_test (
id int auto_increment,
i int not null,
ts0 timestamp default current_timestamp,
ts1 timestamp,
ts1 timestamp default current_timestamp,
dt2 datetime,
t datetime,
updated tinyint unsigned default 0,
Expand Down
4 changes: 2 additions & 2 deletions localtests/timestamp/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ create table gh_ost_test (
id int auto_increment,
i int not null,
ts0 timestamp default current_timestamp,
ts1 timestamp,
ts2 timestamp,
ts1 timestamp default current_timestamp,
ts2 timestamp default current_timestamp,
updated tinyint unsigned default 0,
primary key(id),
key i_idx(i)
Expand Down
2 changes: 1 addition & 1 deletion localtests/tz-datetime-ts/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ create table gh_ost_test (
id int auto_increment,
i int not null,
ts0 timestamp default current_timestamp,
ts1 timestamp,
ts1 timestamp default current_timestamp,
dt2 datetime,
t datetime,
updated tinyint unsigned default 0,
Expand Down
2 changes: 1 addition & 1 deletion localtests/tz-datetime-ts/extra_args
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--alter="change column t t timestamp not null"
--alter="change column t t timestamp not null default current_timestamp"
4 changes: 2 additions & 2 deletions localtests/tz/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ create table gh_ost_test (
id int auto_increment,
i int not null,
ts0 timestamp default current_timestamp,
ts1 timestamp,
ts2 timestamp,
ts1 timestamp default current_timestamp,
ts2 timestamp default current_timestamp,
updated tinyint unsigned default 0,
primary key(id),
key i_idx(i)
Expand Down