Move journal transaction code to repository #130

This commit is contained in:
Nabeel Shahzad
2018-02-28 19:04:56 -06:00
parent d1fcecf873
commit 1794549a20
5 changed files with 151 additions and 4 deletions

View File

@@ -21,7 +21,6 @@ class CreateJournalTransactionsTable extends Migration
$table->unsignedBigInteger('credit')->nullable();
$table->char('currency', 5);
$table->text('memo')->nullable();
$table->text('tags')->nullable();
$table->char('ref_class', 32)->nullable();
$table->integer('ref_class_id')->nullable();
$table->timestamps();

View File

@@ -16,7 +16,7 @@ class CreateJournalsTable extends Migration
Schema::create('journals', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('ledger_id')->nullable();
$table->bigInteger('balance');
$table->bigInteger('balance')->default(0);
$table->char('currency', 5);
$table->char('morphed_type', 32);
$table->integer('morphed_id');