<?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_postings', function (Blueprint $table) {
            $table->string('conditions_pdf_path')->nullable()->after('custom_application_form_name');
            $table->string('conditions_pdf_name')->nullable()->after('conditions_pdf_path');
        });
    }

    public function down(): void
    {
        Schema::table('job_postings', function (Blueprint $table) {
            $table->dropColumn(['conditions_pdf_path', 'conditions_pdf_name']);
        });
    }
};