<?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('current_file_id', 64)->nullable()->after('latest_version');
            $table->string('latest_file_id', 64)->nullable()->after('current_file_id');
            $table->boolean('is_ignored')->default(false)->after('is_user_overridden');
        });
    }

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