<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    public function up(): void
    {
        DB::table('compras')
            ->where('status', 'in_review')
            ->update(['status' => 'pending_payment']);
    }

    public function down(): void
    {
        // This cleanup cannot be reversed without changing legitimate pending purchases.
    }
};
