Add loan card
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user