@@ -531,22 +531,18 @@ describe('MySQLPlus', function() {
531
531
columns : {
532
532
a : ColTypes . timestamp ( ) . notNull ( ) ,
533
533
b : ColTypes . timestamp ( ) . notNull ( ) . defaultCurrentTimestamp ( ) ,
534
- c : ColTypes . timestamp ( ) . notNull ( ) . default ( 0 ) ,
535
- d : ColTypes . timestamp ( ) ,
536
- e : ColTypes . timestamp ( ) . default ( null ) ,
537
- f : ColTypes . timestamp ( ) . default ( 0 ) ,
538
- g : ColTypes . timestamp ( ) . default ( '2017-03-25 12:46:05' ) ,
534
+ c : ColTypes . timestamp ( ) ,
535
+ d : ColTypes . timestamp ( ) . default ( null ) ,
536
+ e : ColTypes . timestamp ( ) . default ( '2017-03-25 12:46:05' ) ,
539
537
} ,
540
538
} ;
541
539
const timestampTableExpectedSQL =
542
540
'CREATE TABLE `timestamp_table` (\n' +
543
541
' `a` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n' +
544
542
' `b` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n' +
545
- " `c` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ,\n" +
543
+ ' `c` timestamp NULL DEFAULT NULL ,\n' +
546
544
' `d` timestamp NULL DEFAULT NULL,\n' +
547
- ' `e` timestamp NULL DEFAULT NULL,\n' +
548
- " `f` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n" +
549
- " `g` timestamp NULL DEFAULT '2017-03-25 12:46:05'\n" +
545
+ " `e` timestamp NULL DEFAULT '2017-03-25 12:46:05'\n" +
550
546
') ENGINE=InnoDB DEFAULT CHARSET=utf8' ;
551
547
552
548
0 commit comments