Make action_date a datetime

This commit is contained in:
snipe 2019-03-13 21:53:56 -07:00
parent 9f79028391
commit 60e52cc927

View file

@ -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');
});
}
}
}