finance helper model update

This commit is contained in:
2018-12-13 02:07:53 -06:00
parent 9f4fc08a73
commit 4a69abff9a
2 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);