Explorar o código

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

ahwelp %!s(int64=7) %!d(string=hai) anos
pai
achega
5c1773c655
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

@@ -586,7 +586,7 @@ class Table
      */
     public function addSoftDelete($deletedAtColumnName = 'deleted_at'){
     	$deletedAtColumnName = is_null($deletedAtColumnName) ? 'deleted_at' : $deletedAtColumnName;
-        $this->addColumn($createdAtColumnName, 'timestamp', array(
+        $this->addColumn($deletedAtColumnName, 'timestamp', array(
             'default' => 'null',
             'null'    => true,
         ));