mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Make action_date a datetime
This commit is contained in:
parent
9f79028391
commit
60e52cc927
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue