Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Aug 18, 2023
1 parent 6b37dca commit 4dc7668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4dc7668

Please sign in to comment.