From 4dc7668fc0a56f29f6471861c944d1bf5c12f2d7 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Fri, 18 Aug 2023 17:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/Column.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/Column.php b/src/db/Column.php index 3b5cb04..d020960 100644 --- a/src/db/Column.php +++ b/src/db/Column.php @@ -160,7 +160,7 @@ public static function unsignedInteger($name) public static function timestamp($name) { - return self::make($name, AdapterInterface::PHINX_TYPE_TIMESTAMP); + return self::make($name, AdapterInterface::PHINX_TYPE_TIMESTAMP, ['null' => true, 'default' => null]); } public static function uuid($name)