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