change amount in wallet table to 14 digit with 5 decimal places

This commit is contained in:
omair saleh
2020-12-02 16:19:22 +08:00
parent 0772c5d478
commit a0e2632b54
@@ -18,11 +18,12 @@ class CreateCompaniesWalletTable extends Migration
$table->bigInteger('company_id')->unsigned();
$table->string('code');
$table->string('currency');
$table->decimal('amount', 8, 2)->default(0.00);
$table->bigInteger('currency_id')->unsigned();
$table->decimal('amount', 14, 5)->default(0.00);
$table->timestamps();
$table->foreign('company_id')->references('id')->on('companies')->onDelete('cascade');
$table->foreign('currency_id')->references('id')->on('currencies')->onDelete('cascade');
});
}