add new column to harim table

This commit is contained in:
2025-08-25 09:06:14 +03:30
parent 39d30b8aa7
commit dad4ee8713
2 changed files with 42 additions and 1 deletions

View File

@@ -96,7 +96,6 @@ class RequestPortalController extends Controller
'zone_fa' => MissionZones::name($request->zone),
'start_date' => $request->start_date,
'end_date' => $request->end_date,
'request_date' => $request->request_date,
'description' => $request->description,
'end_point' => $request->end_point,
'area' => json_encode($request->area),

View File

@@ -0,0 +1,42 @@
<?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('harims', function (Blueprint $table) {
$table->dropColumn(['first_name', 'last_name', 'request_number', 'county']);
$table->unsignedBigInteger('panjare_vahed_id');
$table->string('national_id');
$table->string('worksheet_id');
$table->json('response_options')->nullable();
$table->string('isic');
$table->polygon('primary_area');
$table->polygon('forbidden_area')->nullable();
$table->polygon('final_area');
$table->polygon('final_plan');
$table->polygon('access_road')->nullable();
$table->string('payment_amount');
$table->boolean('need_payment');
$table->boolean('need_access_road');
$table->boolean('access_road_allowed')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('harims', function (Blueprint $table) {
//
});
}
};