migration

This commit is contained in:
2021-02-15 19:09:54 +09:00
parent 05db82f3cb
commit 4a117c6390
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ class FinanceHelper {
//Foreach journal entry, add the journal entry to the table
foreach($wallet as $entry) {
dd($entry);
//See if we find the entry id in the database already
$found = AllianceWalletJournal::where([
'id' => $entry['id'],

View File

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