<?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('invoices', function (Blueprint $table) {
            $table->string('delivery_photo_path')->nullable()->after('delivery_note');
            $table->string('delivery_signature_path')->nullable()->after('delivery_photo_path');
        });
    }

    public function down(): void
    {
        Schema::table('invoices', function (Blueprint $table) {
            $table->dropColumn([
                'delivery_photo_path',
                'delivery_signature_path',
            ]);
        });
    }
};
