<?php

use App\Support\FishSpatialSchemaInstaller;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    public function up(): void
    {
        if (Schema::getConnection()->getDriverName() !== 'pgsql') {
            return;
        }

        FishSpatialSchemaInstaller::ensureExtension();
    }

    public function down(): void
    {
        //
    }
};
