Atualizar 'src/DDLWrapper/Db/Table.php'

This commit is contained in:
ahwelp
2019-01-02 03:55:08 +00:00
parent 5c1773c655
commit c277f2128e
+1 -1
View File
@@ -587,7 +587,7 @@ class Table
public function addSoftDelete($deletedAtColumnName = 'deleted_at'){
$deletedAtColumnName = is_null($deletedAtColumnName) ? 'deleted_at' : $deletedAtColumnName;
$this->addColumn($deletedAtColumnName, 'timestamp', array(
'default' => 'null',
'default' => null,
'null' => true,
));
return $this;