Move journal transaction code to repository #130
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user