Add loan card

This commit is contained in:
2024-10-14 08:16:06 +05:00
parent 5eb34b80b3
commit 1d43711c5a
7 changed files with 95 additions and 10 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('loan_card_number')->nullable();
$table->string('loan_card_name')->nullable();
$table->string('loan_card_month')->nullable();
$table->string('loan_card_year')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('loan_orders', function (Blueprint $table) {
$table->dropColumn('loan_card_number');
$table->dropColumn('loan_card_name');
$table->dropColumn('loan_card_month');
$table->dropColumn('loan_card_year');
});
}
};