add start and finish time

This commit is contained in:
2026-01-25 16:16:37 +03:30
parent 44e7f6a321
commit 1775a8e75e
6 changed files with 50 additions and 6 deletions

View File

@@ -0,0 +1,31 @@
<?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->unsignedTinyInteger('province_id')->nullable();
$table->string('province_name')->nullable();
$table->unsignedSmallInteger('city_id')->nullable();
$table->string('city_name')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('mission_violations', function (Blueprint $table) {
$table->dropColumn(['province_id', 'province_name', 'city_id', 'city_name']);
});
}
};