add column to road observation histories

This commit is contained in:
2025-02-25 13:24:14 +03:30
parent 320efee4c7
commit 2adf091f7d
5 changed files with 132 additions and 14 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_observation_histories', function (Blueprint $table) {
$table->string('from_province')->nullable();
$table->string('to_province')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('road_observation_histories', function (Blueprint $table) {
$table->dropColumn('from_province');
$table->dropColumn('to_province');
});
}
};