Enforce larger decimal format for ingredient amount column

This commit is contained in:
Christopher C. Wells 2021-04-10 14:20:11 -07:00
parent c6dee093cc
commit 9ed27c0108
1 changed files with 1 additions and 1 deletions

View File

@ -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');