feat(webstatement): tambahkan field baru pada TempFundsTransfer dan migrasi terkait
- Menambahkan daftar field baru pada model `TempFundsTransfer` untuk mendukung pengelolaan data transfer dana sementara.
- Field tambahan meliputi:
- `at_unique_id`
- `bif_ref_no`
- `atm_order_id`
- `api_iss_acct`
- `api_benff_acct`
- `remarks`
- `api_mrchn_id`
- `bif_rcv_acct`
- `bif_snd_acct`
- `bif_rcv_name`
- `bif_va_no`
- Membuat file migrasi bernama `2025_05_29_015537_add_fields_to_temp_funds_transfer_table.php` untuk:
- Menambahkan field baru pada tabel `temp_funds_transfer`.
- Menyediakan mekanisme rollback dengan menghapus field yang ditambahkan.
Signed-off-by: Daeng Deni Mardaeni <ddeni05@gmail.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,50 @@
|
||||
<?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('temp_funds_transfer', function (Blueprint $table) {
|
||||
$table->text('at_unique_id')->nullable();
|
||||
$table->text('bif_ref_no')->nullable();
|
||||
$table->text('atm_order_id')->nullable();
|
||||
$table->text('api_iss_acct')->nullable();
|
||||
$table->text('api_benff_acct')->nullable();
|
||||
$table->text('remarks')->nullable();
|
||||
$table->text('api_mrchn_id')->nullable();
|
||||
$table->text('bif_rcv_acct')->nullable();
|
||||
$table->text('bif_snd_acct')->nullable();
|
||||
$table->text('bif_rcv_name')->nullable();
|
||||
$table->text('bif_va_no')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('temp_funds_transfer', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'at_unique_id',
|
||||
'bif_ref_no',
|
||||
'atm_order_id',
|
||||
'api_iss_acct',
|
||||
'api_benff_acct',
|
||||
'remarks',
|
||||
'api_mrchn_id',
|
||||
'bif_rcv_acct',
|
||||
'bif_snd_acct',
|
||||
'bif_rcv_name',
|
||||
'bif_va_no'
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user