From 79cb9793aa248f57268eca03c1957c33a6890e0b Mon Sep 17 00:00:00 2001 From: kiddyu <58631254@qq.com> Date: Tue, 26 Mar 2024 04:56:52 +0800 Subject: [PATCH] test: fix date type --- test/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.test.js b/test/index.test.js index d7b560c..38fdecc 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -476,8 +476,8 @@ describe('Integration test', () => { table.text('custom_cast'); table.integer('some_string'); table.string('some_int'); - table.timestamp('some_date'); - table.timestamp('some_datetime'); + table.datetime('some_date').defaultTo(null); + table.datetime('some_datetime').defaultTo(null); table.tinyint('is_published').defaultTo(0); table.timestamps(); })