<?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('import_jobs', function (Blueprint $table) {
            $table->string('source', 30)->default('anizium')->after('id');
            $table->string('animecix_title_id')->nullable()->after('source');
            $table->string('animecix_slug')->nullable()->after('animecix_title_id');
        });
    }

    public function down(): void
    {
        Schema::table('import_jobs', function (Blueprint $table) {
            $table->dropColumn(['source', 'animecix_title_id', 'animecix_slug']);
        });
    }
};
