mirror of https://github.com/kcal-app/kcal.git
Enforce larger decimal format for ingredient amount column
This commit is contained in:
parent
c6dee093cc
commit
9ed27c0108
|
|
@ -18,7 +18,7 @@ class CreateIngredientAmountsTable extends Migration
|
|||
$table->id();
|
||||
$table->unsignedInteger('ingredient_id');
|
||||
$table->string('ingredient_type');
|
||||
$table->unsignedFloat('amount');
|
||||
$table->decimal('amount', 10, 8)->unsigned();
|
||||
$table->enum('unit', Nutrients::units()->pluck('value')->toArray())->nullable();
|
||||
$table->string('detail')->nullable();
|
||||
$table->unsignedInteger('weight');
|
||||
|
|
|
|||
Loading…
Reference in New Issue