<?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('modpackchecker_servers', function (Blueprint $table) {
            $table->string('detection_method')->default('unknown')->after('error_message');
            $table->boolean('is_user_overridden')->default(false)->after('detection_method');
        });
    }

    public function down(): void
    {
        Schema::table('modpackchecker_servers', function (Blueprint $table) {
            $table->dropColumn(['detection_method', 'is_user_overridden']);
        });
    }
};
