From ac7f8df10b609a71d70422f2d6ffd35ff2a986eb Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 21 Jan 2018 17:42:40 +0200 Subject: [PATCH] update to 3.7.1 version mysql error #1672 --- database/migrations/2017_08_14_085334_increase_precision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2017_08_14_085334_increase_precision.php b/database/migrations/2017_08_14_085334_increase_precision.php index 717ac1608222..fb1313c14ee6 100644 --- a/database/migrations/2017_08_14_085334_increase_precision.php +++ b/database/migrations/2017_08_14_085334_increase_precision.php @@ -14,12 +14,12 @@ class IncreasePrecision extends Migration { Schema::table('products', function ($table) { $table->decimal('cost', 15, 4)->change(); - $table->decimal('qty', 15, 4)->change(); + $table->decimal('qty', 15, 4)->default(0)->change(); }); Schema::table('invoice_items', function ($table) { $table->decimal('cost', 15, 4)->change(); - $table->decimal('qty', 15, 4)->change(); + $table->decimal('qty', 15, 4)->default(0)->change(); }); Schema::table('clients', function ($table) {