<?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
    {
        if (Schema::hasColumn('roles', 'description')) {
            return;
        }

        Schema::table('roles', function (Blueprint $table) {
            $table->string('description', 200)->nullable()->after('name');
        });
    }
};
