<?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('services', function (Blueprint $table) {
            $table->string('key_visual_filename')->nullable()->after('beamer_tech_name');
            $table->string('background_filename')->nullable()->after('key_visual_filename');
            $table->string('moderator_name')->nullable()->after('background_filename');
            $table->string('preacher_name_override')->nullable()->after('moderator_name');
        });
    }

    public function down(): void
    {
        Schema::table('services', function (Blueprint $table) {
            $table->dropColumn([
                'key_visual_filename',
                'background_filename',
                'moderator_name',
                'preacher_name_override',
            ]);
        });
    }
};
