passport fields to mobile loan orders

This commit is contained in:
2024-10-02 13:21:40 +05:00
parent 5844f1b04b
commit b408834f4b
2 changed files with 84 additions and 25 deletions

View File

@@ -0,0 +1,34 @@
<?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('loan_orders', function (Blueprint $table) {
$table->string('guarantor_passport_serie')->nullable();
$table->string('guarantor_passport_id')->nullable();
$table->string('guarantor_2_passport_serie')->nullable();
$table->string('guarantor_2_passport_id')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('loan_orders', function (Blueprint $table) {
$table->dropColumn('guarantor_passport_serie');
$table->dropColumn('guarantor_passport_id');
$table->dropColumn('guarantor_2_passport_serie');
$table->dropColumn('guarantor_2_passport_id');
});
}
};