added geojson extractor

This commit is contained in:
noyamii
2025-08-19 14:02:59 +03:30
parent c2be14a183
commit d2afe15a2f
3 changed files with 164 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?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('cities', function (Blueprint $table) {
$table->geometry('geometry')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('cities', function (Blueprint $table) {
$table->dropColumn('geometry');
});
}
};