From eacd9931d773278bc699ce798382d1784e4db465 Mon Sep 17 00:00:00 2001 From: Vojta Svoboda Date: Wed, 10 Feb 2016 16:19:20 +0100 Subject: [PATCH] Make deleted_at column as timestamp --- classes/MigrationColumnType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/MigrationColumnType.php b/classes/MigrationColumnType.php index e87d0152..b7df2434 100644 --- a/classes/MigrationColumnType.php +++ b/classes/MigrationColumnType.php @@ -117,7 +117,7 @@ public static function toMigrationMethodName($type, $columnName) // The datetime type maps to datetime and timestamp. Use the name // guessing as the only possible solution. - if (in_array($columnName, ['created_at', 'updated_at'])) { + if (in_array($columnName, ['created_at', 'updated_at', 'deleted_at'])) { return self::TYPE_TIMESTAMP; }