add driver_id and driver_name in mission

This commit is contained in:
2026-06-09 09:16:50 +03:30
parent e0edcf6db2
commit 2f3ebf5808
5 changed files with 40 additions and 3 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('missions', function (Blueprint $table) {
$table->integer('driver_id')->unsigned()->nullable()->index();
$table->string('driver_name')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('missions', function (Blueprint $table) {
$table->dropColumn('driver_name','driver_id');
});
}
};