From 669661c52a38488216e52e67ac07b2303886fd2b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 15:15:47 +0000 Subject: [PATCH 1/3] Initial plan From 50c5c9ee92b9932f5e5bc262dbc216d414adeb2f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 15:26:23 +0000 Subject: [PATCH 2/3] chore: outline plan for batch_uuid activity log fix Agent-Logs-Url: https://github.com/devhub-platform/backend-development/sessions/68926769-63c8-415b-a259-3593b6fd6455 Co-authored-by: youssef-ahmed-cs <127596947+youssef-ahmed-cs@users.noreply.github.com> --- bootstrap/cache/packages.php | 0 bootstrap/cache/services.php | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 bootstrap/cache/packages.php mode change 100644 => 100755 bootstrap/cache/services.php diff --git a/bootstrap/cache/packages.php b/bootstrap/cache/packages.php old mode 100644 new mode 100755 diff --git a/bootstrap/cache/services.php b/bootstrap/cache/services.php old mode 100644 new mode 100755 From 6c33302d01f2ac7f710b3413769ec562754d6d12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 15:29:31 +0000 Subject: [PATCH 3/3] fix: restore batch_uuid compatibility for activity_log inserts Agent-Logs-Url: https://github.com/devhub-platform/backend-development/sessions/68926769-63c8-415b-a259-3593b6fd6455 Co-authored-by: youssef-ahmed-cs <127596947+youssef-ahmed-cs@users.noreply.github.com> --- bootstrap/cache/packages.php | 0 bootstrap/cache/services.php | 0 ...store_batch_uuid_to_activity_log_table.php | 38 +++++++++++++++++++ 3 files changed, 38 insertions(+) mode change 100755 => 100644 bootstrap/cache/packages.php mode change 100755 => 100644 bootstrap/cache/services.php create mode 100644 database/migrations/2026_04_17_180000_restore_batch_uuid_to_activity_log_table.php diff --git a/bootstrap/cache/packages.php b/bootstrap/cache/packages.php old mode 100755 new mode 100644 diff --git a/bootstrap/cache/services.php b/bootstrap/cache/services.php old mode 100755 new mode 100644 diff --git a/database/migrations/2026_04_17_180000_restore_batch_uuid_to_activity_log_table.php b/database/migrations/2026_04_17_180000_restore_batch_uuid_to_activity_log_table.php new file mode 100644 index 0000000..1cb1029 --- /dev/null +++ b/database/migrations/2026_04_17_180000_restore_batch_uuid_to_activity_log_table.php @@ -0,0 +1,38 @@ +hasTable($tableName) || $schema->hasColumn($tableName, 'batch_uuid')) { + return; + } + + $schema->table($tableName, function (Blueprint $table) { + $table->uuid('batch_uuid')->nullable(); + }); + } + + public function down(): void + { + $connection = config('activitylog.database_connection'); + $tableName = config('activitylog.table_name', 'activity_log'); + $schema = Schema::connection($connection); + + if (! $schema->hasTable($tableName) || ! $schema->hasColumn($tableName, 'batch_uuid')) { + return; + } + + $schema->table($tableName, function (Blueprint $table) { + $table->dropColumn('batch_uuid'); + }); + } +};