From e1b9f3eee5c6f1af4a6c0977d3b7da066d9089fe Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Wed, 18 May 2016 18:03:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E6=AE=B5=E5=90=8D=EF=BC=8C=E4=B8=8E=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=E7=9A=84=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phinx/src/Phinx/Db/Table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phinx/src/Phinx/Db/Table.php b/phinx/src/Phinx/Db/Table.php index 23958bc..04617e4 100644 --- a/phinx/src/Phinx/Db/Table.php +++ b/phinx/src/Phinx/Db/Table.php @@ -559,11 +559,11 @@ class Table */ public function addTimestamps() { - $this->addColumn('created_at', 'timestamp', array( + $this->addColumn('create_time', 'timestamp', array( 'default' => 'CURRENT_TIMESTAMP', 'update' => '' )) - ->addColumn('updated_at', 'timestamp', array( + ->addColumn('update_time', 'timestamp', array( 'null' => true, 'default' => null ));