File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -294,7 +294,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
294294 $ this ->assertQuery (
295295 "CREATE TABLE _tmp_table (
296296 ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
297- created_at datetime NOT NULL
297+ timestamp1 datetime NOT NULL,
298+ timestamp2 date NOT NULL,
299+ timestamp3 time NOT NULL,
300+ timestamp4 timestamp NOT NULL,
301+ timestamp5 year NOT NULL
298302 ); "
299303 );
300304
@@ -306,7 +310,11 @@ public function testShowCreateTableWithEmptyDatetimeDefault() {
306310 $ this ->assertEquals (
307311 "CREATE TABLE _tmp_table (
308312 `ID` bigint PRIMARY KEY AUTO_INCREMENT NOT NULL,
309- `created_at` datetime NOT NULL
313+ `timestamp1` datetime NOT NULL,
314+ `timestamp2` date NOT NULL,
315+ `timestamp3` time NOT NULL,
316+ `timestamp4` timestamp NOT NULL,
317+ `timestamp5` year NOT NULL
310318); " ,
311319 $ results [0 ]->{'Create Table ' }
312320 );
You can’t perform that action at this time.
0 commit comments