<?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('guide_pages', function (Blueprint $table) {
            $table->dropColumn('html_url');
            $table->longText('content')->nullable()->after('title')->comment('富文本正文HTML');
        });
    }

    public function down(): void
    {
        Schema::table('guide_pages', function (Blueprint $table) {
            $table->dropColumn('content');
            $table->string('html_url', 500)->after('title')->comment('HTML页面链接');
        });
    }
};
