diff --git a/database/migrations/2018_11_17_053307_create_corp_journal.php b/database/migrations/2018_11_17_053307_create_corp_journal.php index f3d392d15..7923d895d 100644 --- a/database/migrations/2018_11_17_053307_create_corp_journal.php +++ b/database/migrations/2018_11_17_053307_create_corp_journal.php @@ -15,7 +15,7 @@ class CreateCorpJournal extends Migration { if(!Schema::hasTable('CorpJournals')) { Schema::create('CorpJournals', function(Blueprint $table) { - $table->integer('id')->unique(); + $table->string('id')->unique(); $table->integer('corporation_id')->nullabe(); $table->integer('division')->default(0); $table->decimal('amount', 20, 2)->nullable(); @@ -25,7 +25,7 @@ class CreateCorpJournal extends Migration $table->dateTime('date')->nullabe(); $table->string('description')->nullabe(); $table->integer('first_party_id')->nullable(); - $table->string('reason')->nullabe(); + $table->string('reason')->default(' '); $table->string('ref_type')->nullabe(); $table->integer('second_party_id')->nullable(); $table->decimal('tax', 20, 2)->default(0.00); diff --git a/database/migrations/2018_12_12_074812_create_player_donation_journals_table.php b/database/migrations/2018_12_12_074812_create_player_donation_journals_table.php index a4e1cef62..fa6134fe8 100644 --- a/database/migrations/2018_12_12_074812_create_player_donation_journals_table.php +++ b/database/migrations/2018_12_12_074812_create_player_donation_journals_table.php @@ -15,7 +15,7 @@ class CreatePlayerDonationJournalsTable extends Migration { if(!Schema::hasTable('PlayerDonationJournals')) { Schema::create('PlayerDonationJournals', function(Blueprint $table) { - $table->integer('id')->unique(); + $table->string('id')->unique(); $table->integer('corporation_id')->nullabe(); $table->integer('division')->default(0); $table->decimal('amount', 20, 2)->nullable(); @@ -25,7 +25,7 @@ class CreatePlayerDonationJournalsTable extends Migration $table->dateTime('date')->nullabe(); $table->string('description')->nullabe(); $table->integer('first_party_id')->nullable(); - $table->string('reason')->nullabe(); + $table->string('reason')->default(' '); $table->string('ref_type')->nullabe(); $table->integer('second_party_id')->nullable(); $table->decimal('tax', 20, 2)->default(0.00);