From cf0361f654bd418e1dfc602dc5bbb89de4677643 Mon Sep 17 00:00:00 2001 From: Jesus Baron Date: Fri, 15 Oct 2021 21:49:33 -0500 Subject: [PATCH] Allow 2 decimals for energy amount --- migrations/2020_03_27_000001_create_energies_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/2020_03_27_000001_create_energies_table.php b/migrations/2020_03_27_000001_create_energies_table.php index 58d534f..14e7c38 100644 --- a/migrations/2020_03_27_000001_create_energies_table.php +++ b/migrations/2020_03_27_000001_create_energies_table.php @@ -16,7 +16,7 @@ public function up() Schema::create('energies', function (Blueprint $table) { $table->bigIncrements('id'); $table->morphs('energisable'); - $table->float('amount', 8, 1); + $table->float('amount', 8, 2); $table->timestamps(); }); }