A free open source IT asset/license management system
Purge activity log of consumable bulk checkins
Marcus Moored5bc5caacd09
diff --git a/database/migrations/2025_03_12_184851_purge_action_logs_table_of_consumable_checkin_entries.php b/database/migrations/2025_03_12_184851_purge_action_logs_table_of_consumable_checkin_entries.phpnew file mode 100644index 0000000000..6f2b1324bf--- /dev/null+++ b/database/migrations/2025_03_12_184851_purge_action_logs_table_of_consumable_checkin_entries.php@@ -0,0 +1,30 @@+<?php++use App\Models\Consumable;+use Illuminate\Database\Migrations\Migration;+use Illuminate\Support\Facades\DB;++return new class extends Migration+{+ /**+ * Run the migrations.+ */+ public function up(): void+ {+ DB::table('action_logs')+ ->where([+ 'action_type' => 'checkin from',+ 'note' => 'Bulk checkin items',+ 'item_type' => Consumable::class,+ ])+ ->delete();+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void+ {+ // nothing to do here...+ }+};