<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        Schema::table('serp_operation_states', function (Blueprint $t) {
            $t->timestamp('ramp_started_at')->nullable()->after('last_error_category')->index();
        });
    }

    public function down(): void
    {
        Schema::table('serp_operation_states', fn (Blueprint $t) => $t->dropColumn('ramp_started_at'));
    }
};
