Fixes and tests for the journal and journaled transactions #130
This commit is contained in:
@@ -17,8 +17,8 @@ class CreateJournalTransactionsTable extends Migration
|
||||
$table->char('id', 36)->unique();
|
||||
$table->char('transaction_group', 36)->nullable();
|
||||
$table->integer('journal_id');
|
||||
$table->unsignedBigInteger('debit')->nullable();
|
||||
$table->unsignedBigInteger('credit')->nullable();
|
||||
$table->unsignedBigInteger('debit')->nullable();
|
||||
$table->char('currency', 5);
|
||||
$table->text('memo')->nullable();
|
||||
$table->char('ref_class', 32)->nullable();
|
||||
|
||||
@@ -17,9 +17,9 @@ class CreateJournalsTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('ledger_id')->nullable();
|
||||
$table->bigInteger('balance')->default(0);
|
||||
$table->char('currency', 5);
|
||||
$table->char('morphed_type', 32);
|
||||
$table->integer('morphed_id');
|
||||
$table->string('currency', 5);
|
||||
$table->string('morphed_type', 32)->nullable();
|
||||
$table->unsignedInteger('morphed_id')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user