<?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('teams', function (Blueprint $table) {
            $table->string('crest_mode', 10)->default('crest')->after('crest_initials'); // 'crest' | 'logo'
            $table->string('logo_path', 255)->nullable()->after('crest_mode');
        });
    }

    public function down(): void
    {
        Schema::table('teams', function (Blueprint $table) {
            $table->dropColumn(['crest_mode', 'logo_path']);
        });
    }
};
