Explorar o código

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

ahwelp %!s(int64=7) %!d(string=hai) anos
pai
achega
c277f2128e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/DDLWrapper/Db/Table.php

+ 1 - 1
src/DDLWrapper/Db/Table.php

@@ -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;