mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
change amount in wallet table to 14 digit with 5 decimal places
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user