Skip to content

A free open source IT asset/license management system

Make action_date a datetime

snipe60e52cc927eb
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
+}