From e8ee218f39b7dcf7e17da2acc5e7ef4a2e4e3938 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 4 Mar 2025 15:20:23 -0800 Subject: [PATCH] Purge activity log of report template data --- ...ction_logs_of_report_template_activity.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 database/migrations/2025_03_04_231256_purge_action_logs_of_report_template_activity.php 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.php new file mode 100644 index 0000000000..150df41a48 --- /dev/null +++ b/database/migrations/2025_03_04_231256_purge_action_logs_of_report_template_activity.php @@ -0,0 +1,26 @@ +where("item_type", ReportTemplate::class) + ->whereIn("action_type", ["create", "update", "delete"]) + ->delete(); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // nothing to do here... + } +};