<?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('job_form_settings', function (Blueprint $table) {
            $table->string('social_instagram')->nullable()->after('form_footer_text');
            $table->string('social_linkedin')->nullable()->after('social_instagram');
            $table->string('social_twitter')->nullable()->after('social_linkedin');
            $table->string('social_youtube')->nullable()->after('social_twitter');
            $table->string('social_facebook')->nullable()->after('social_youtube');
            $table->string('application_url', 500)->nullable()->after('social_facebook');
        });
    }

    public function down(): void
    {
        Schema::table('job_form_settings', function (Blueprint $table) {
            $table->dropColumn([
                'social_instagram',
                'social_linkedin',
                'social_twitter',
                'social_youtube',
                'social_facebook',
                'application_url',
            ]);
        });
    }
};