<?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
    {
        // PRC-555 follow-up — ek SEO alanları
        Schema::table('route_slugs', function (Blueprint $table) {
            $table->string('keywords', 255)->nullable()->after('meta_description');
            $table->string('robots', 32)->nullable()->after('keywords'); // 'index,follow' / 'noindex,nofollow' vb
            $table->string('canonical_url', 500)->nullable()->after('robots');
            $table->string('og_image_alt', 255)->nullable()->after('og_image');
        });
    }

    public function down(): void
    {
        Schema::table('route_slugs', function (Blueprint $table) {
            $table->dropColumn(['keywords', 'robots', 'canonical_url', 'og_image_alt']);
        });
    }
};
