<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('slides', function (Blueprint $table) {
            $table->string('vial_1_url', 1000)->nullable()->after('image_url');
            $table->string('vial_2_url', 1000)->nullable()->after('vial_1_url');
            $table->string('vial_3_url', 1000)->nullable()->after('vial_2_url');
            $table->string('vial_4_url', 1000)->nullable()->after('vial_3_url');
        });
    }

    public function down(): void
    {
        Schema::table('slides', function (Blueprint $table) {
            $table->dropColumn(['vial_1_url', 'vial_2_url', 'vial_3_url', 'vial_4_url']);
        });
    }
};
