<?php

use App\Support\CreditNumberBackfill;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        CreditNumberBackfill::run();
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        // Irreversible por diseño: no hay forma de recuperar el estado
        // "sin numerar" de los créditos backfilled sin perder información
        // (no se guarda cuáles company_credit_number fueron asignados por
        // este backfill vs. por el hook `creating` en creación normal).
    }
};
