add gps to migration

This commit is contained in:
2025-12-29 11:45:42 +03:30
parent f7e044f65a
commit eb690b59a7
7 changed files with 54 additions and 15 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('mission_violations', function (Blueprint $table) {
$table->string('km')->nullable();
$table->unsignedTinyInteger('gps')->default(1);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('mission_violations', function (Blueprint $table) {
$table->dropColumn(['km', 'gps']);
});
}
};