improve stracture

This commit is contained in:
2025-07-22 16:32:10 +03:30
parent 0c3802fd9e
commit 57d72cb9c3
3 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
<?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('road_patrols', function (Blueprint $table) {
$table->timestamp('start_time')->nullable()->change();
$table->timestamp('end_time')->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('road_patrols', function (Blueprint $table) {
$table->timestamp('start_time')->change();
$table->timestamp('end_time')->change();
});
}
};