From 05db82f3cb27e7d934a4a444120313c39cbb1735 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 15 Feb 2021 19:08:43 +0900 Subject: [PATCH] migration --- app/Library/Helpers/FinanceHelper.php | 18 ------------------ ...14_165934_create_alliance_journal_table.php | 3 ++- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/app/Library/Helpers/FinanceHelper.php b/app/Library/Helpers/FinanceHelper.php index 0ccab4654..9a819f5cf 100644 --- a/app/Library/Helpers/FinanceHelper.php +++ b/app/Library/Helpers/FinanceHelper.php @@ -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 { /** diff --git a/database/migrations/2021_02_14_165934_create_alliance_journal_table.php b/database/migrations/2021_02_14_165934_create_alliance_journal_table.php index 87aa44493..f654e6bcb 100644 --- a/database/migrations/2021_02_14_165934_create_alliance_journal_table.php +++ b/database/migrations/2021_02_14_165934_create_alliance_journal_table.php @@ -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();