refactor(shoraka): move financing records to master database
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user