add new column to harim table
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user