- Menambahkan kolom `crdate` pada tabel `atmcards` di database. - Memperbaiki struktur dan penyesuaian format kode pada file `BiayaKartu.php`. - Menyelaraskan alignment konstanta, parameter, dan body fungsi untuk meningkatkan keterbacaan. - Menambahkan pengelolaan data `crdate` dalam proses sinkronisasi kartu ATM. Signed-off-by: Daeng Deni Mardaeni <ddeni05@gmail.com>
48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
<?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::create('atmcards', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('crdno')->nullable();
|
|
$table->string('accflag')->nullable();
|
|
$table->string('cracc1')->nullable();
|
|
$table->string('cracc2')->nullable();
|
|
$table->string('cracc3')->nullable();
|
|
$table->string('cracc4')->nullable();
|
|
$table->string('cracc5')->nullable();
|
|
$table->string('craccnam1')->nullable();
|
|
$table->string('craccnam2')->nullable();
|
|
$table->string('craccnam3')->nullable();
|
|
$table->string('craccnam4')->nullable();
|
|
$table->string('craccnam5')->nullable();
|
|
$table->string('crsts')->nullable();
|
|
$table->string('cttype')->nullable();
|
|
$table->string('ctdesc')->nullable();
|
|
$table->string('crdate')->nullable();
|
|
$table->string('branch')->nullable();
|
|
$table->string('currency')->nullable();
|
|
$table->decimal('fee', 10, 2)->nullable();
|
|
$table->timestamp('last_update')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('atmcards');
|
|
}
|
|
};
|