From d14d99a74d844450b057a9e5c4031407756d1cb1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 7 Feb 2018 12:54:48 +0200 Subject: [PATCH] Merge migration fix --- 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) {