migration

This commit is contained in:
2021-02-15 19:08:43 +09:00
parent 99d5ef9220
commit 05db82f3cb
2 changed files with 2 additions and 19 deletions

View File

@@ -140,24 +140,6 @@ class FinanceHelper {
$awj->save();
}
/*
AllianceWalletJournal::insertOrIgnore([
'id' => $entry->id,
'corporation_id' => $corpId,
'divison' => $division,
'amount' => $entry->amount,
'balance' => $entry->balance,
'context_id' => $entry->context_id,
'date' => $esi->DecodeDate($entry->date),
'description' => $entry->description,
'first_party_id' => $entry->first_party_id,
'reason' => $entry->reason,
'ref_type' => $entry->ref_type,
'tax' => $entry->tax,
'tax_receiver_id' => $entry->tax_receiver_id,
]);
*/
}
} else {
/**

View File

@@ -15,7 +15,8 @@ class CreateAllianceJournalTable extends Migration
{
if(!Schema::hasTable('alliance_wallet_journal')) {
Schema::create('alliance_wallet_journal', function (Blueprint $table) {
$table->string('id')->unique();
$table->unsignedBigInteger('row')->increments();
$table->unsignedBigInteger('id')->unique();
$table->unsignedBigInteger('corporation_id');
$table->unsignedInteger('division');
$table->decimal('amount', 20, 2)->nullable();