update payment migration

This commit is contained in:
faiqahzaman
2022-02-27 14:13:38 +08:00
parent 707744e3d1
commit 9505599fbf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ class LelongController extends Controller
$resit->lelong_id = $id;
$resit->reference_no = $reference_no;
$resit->billplz_id = '';
$resit->total_payment = '';
$resit->total_payment = '0.00';
$resit->resit_type = 2; // 1 = fee , 2 = bid
$resit->save();
}
@@ -67,7 +67,7 @@ class CreatePaymentTable extends Migration
$table->unsignedBigInteger('lelong_id')->unsigned();
$table->string('reference_no')->nullable();
$table->string('billplz_id');
$table->decimal('total_payment', $precision = 9, $scale = 2);
$table->decimal('total_payment', $precision = 11, $scale = 2);
$table->string('resit_type'); // 1 = fee , 2 = bid
$table->string('status')->nullable(); //status => 1 = paid , 2 = pending
$table->timestamp('paid_at')->nullable();