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'); + }); + } +};