refactor(shoraka): move financing records to master database

This commit is contained in:
2026-10-19 13:31:06 +08:00
parent a8888e66d1
commit ac57e04eac
2 changed files with 30 additions and 1 deletions
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMasterShorakaFinancingsTable extends Migration
{
public function up()
{
Schema::connection('mysql7')->create('shoraka_financings', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('kodcaw', 20);
$table->string('norujukan');
$table->string('teller');
$table->string('action', 30);
$table->string('state', 30)->default('WAITING');
$table->json('context');
$table->timestamps();
$table->unique(['kodcaw', 'norujukan']);
});
}
public function down()
{
Schema::connection('mysql7')->dropIfExists('shoraka_financings');
}
}