<?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('app_settings', function (Blueprint $table) {
            $table->string('footer_text')->nullable()->after('nome_organizzazione');
            $table->string('app_version')->nullable()->after('footer_text');
            $table->string('dashboard_welcome')->nullable()->after('app_version');
            $table->boolean('show_version')->default(false)->after('dashboard_welcome');
        });
    }

    public function down(): void
    {
        Schema::table('app_settings', function (Blueprint $table) {
            $table->dropColumn(['footer_text', 'app_version', 'dashboard_welcome', 'show_version']);
        });
    }
};