From 60e52cc927eb867dc05bd09246981bb4ae38012c Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 13 Mar 2019 21:53:56 -0700 Subject: [PATCH] Make action_date a datetime --- .../2019_02_12_182750_add_actiondate_to_actionlog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2019_02_12_182750_add_actiondate_to_actionlog.php b/database/migrations/2019_02_12_182750_add_actiondate_to_actionlog.php index 7537261de8..053b793b9a 100644 --- a/database/migrations/2019_02_12_182750_add_actiondate_to_actionlog.php +++ b/database/migrations/2019_02_12_182750_add_actiondate_to_actionlog.php @@ -14,7 +14,7 @@ class AddActionDateToActionlog extends Migration public function up() { Schema::table('action_logs', function (Blueprint $table) { - $table->date('action_date')->nullable()->default(null); + $table->datetime('action_date')->nullable()->default(null); }); $results = DB::table('action_logs')->select('created_at', 'id')->where('action_type', 'checkout')->orWhere('action_type', 'checkin from')->get(); @@ -35,4 +35,4 @@ class AddActionDateToActionlog extends Migration $table->dropColumn('action_date'); }); } -} \ No newline at end of file +}