A free open source IT asset/license management system
Purge activity log of report template data
Marcus Mooree8ee218f39b7
diff --git a/database/migrations/2025_03_04_231256_purge_action_logs_of_report_template_activity.php b/database/migrations/2025_03_04_231256_purge_action_logs_of_report_template_activity.phpnew file mode 100644index 0000000000..150df41a48--- /dev/null+++ b/database/migrations/2025_03_04_231256_purge_action_logs_of_report_template_activity.php@@ -0,0 +1,26 @@+<?php++use App\Models\ReportTemplate;+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("item_type", ReportTemplate::class)+ ->whereIn("action_type", ["create", "update", "delete"])+ ->delete();+ }++ /**+ * Reverse the migrations.+ */+ public function down(): void+ {+ // nothing to do here...+ }+};