diff --git a/phinx/src/Phinx/Db/Table.php b/phinx/src/Phinx/Db/Table.php index db06c44..319d846 100644 --- a/phinx/src/Phinx/Db/Table.php +++ b/phinx/src/Phinx/Db/Table.php @@ -567,8 +567,8 @@ class Table */ public function addTimestamps($createdAtColumnName = 'create_time', $updatedAtColumnName = 'update_time') { - $createdAtColumnName = is_null($createdAtColumnName) ? 'created_at' : $createdAtColumnName; - $updatedAtColumnName = is_null($updatedAtColumnName) ? 'updated_at' : $updatedAtColumnName; + $createdAtColumnName = is_null($createdAtColumnName) ? 'create_time' : $createdAtColumnName; + $updatedAtColumnName = is_null($updatedAtColumnName) ? 'update_time' : $updatedAtColumnName; $this->addColumn($createdAtColumnName, 'timestamp', array( 'default' => 'CURRENT_TIMESTAMP', 'update' => ''