migration
This commit is contained in:
@@ -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 {
|
||||
/**
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user