From d5bc5caacd09833497fb2d7455bb4f1f654761df Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 12 Mar 2025 11:57:18 -0700 Subject: [PATCH] Purge activity log of consumable bulk checkins --- ...gs_table_of_consumable_checkin_entries.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2025_03_12_184851_purge_action_logs_table_of_consumable_checkin_entries.php 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.php new file mode 100644 index 0000000000..6f2b1324bf --- /dev/null +++ b/database/migrations/2025_03_12_184851_purge_action_logs_table_of_consumable_checkin_entries.php @@ -0,0 +1,30 @@ +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... + } +};