From 9ed27c010894c9b098525fbf9554e917f1945470 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 10 Apr 2021 14:20:11 -0700 Subject: [PATCH] Enforce larger decimal format for ingredient amount column --- .../2021_01_22_212856_create_ingredient_amounts_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2021_01_22_212856_create_ingredient_amounts_table.php b/database/migrations/2021_01_22_212856_create_ingredient_amounts_table.php index 7638da3..7b834ff 100644 --- a/database/migrations/2021_01_22_212856_create_ingredient_amounts_table.php +++ b/database/migrations/2021_01_22_212856_create_ingredient_amounts_table.php @@ -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');