<?php

use App\Services\DatabaseIntegrityRepairService;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
    public function up(): void
    {
        app(DatabaseIntegrityRepairService::class)->repair(ensureActivityLogForeignKeys: true);
    }

    public function down(): void
    {
        // Data repair is not reversed.
    }
};
