<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddParagemCoordsToAderentesTable extends Migration
{
    public function up(): void
    {
        Schema::table('aderentes', function (Blueprint $table) {
            $table->decimal('paragem_lat', 10, 7)->nullable()->after('status');
            $table->decimal('paragem_long', 10, 7)->nullable()->after('paragem_lat');
        });
    }

    public function down(): void
    {
        Schema::table('aderentes', function (Blueprint $table) {
            $table->dropColumn(['paragem_lat', 'paragem_long']);
        });
    }
}
