create new culum for mission

This commit is contained in:
2025-06-10 09:40:32 +03:30
parent 1b6870d7f4
commit b3f22d2fdf
2 changed files with 29 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ return new class extends Migration
$table->dateTime('request_date');
$table->text('description')->nullable();
$table->string('end_point');
$table->geometry('area');
$table->timestamps();
});
}

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('missions', function (Blueprint $table) {
$table->geometry('area');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('missions', function (Blueprint $table) {
$table->dropColumn('area');
});
}
};