<?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('failure_water_supply', function (Blueprint $table) {
            // photos ka path/store ke liye string, null allowed
            $table->string('upload_photos')->nullable()->after('id');
            // agar multiple photos JSON me store karna ho to:
            // $table->json('upload_photos')->nullable()->after('id');
        });
    }

    public function down(): void
    {
        Schema::table('failure_water_supply', function (Blueprint $table) {
            $table->dropColumn('upload_photos');
        });
    }
};
