mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('action_logs', function (Blueprint $table) {
|
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();
|
$results = DB::table('action_logs')->select('created_at', 'id')->where('action_type', 'checkout')->orWhere('action_type', 'checkin from')->get();
|
||||||
|
|
Loading…
Reference in a new issue