update to 3.7.1 version mysql error #1672

This commit is contained in:
Hillel Coren 2018-01-21 17:42:40 +02:00
parent 3d1f542a25
commit ac7f8df10b

View File

@ -14,12 +14,12 @@ class IncreasePrecision extends Migration
{ {
Schema::table('products', function ($table) { Schema::table('products', function ($table) {
$table->decimal('cost', 15, 4)->change(); $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) { Schema::table('invoice_items', function ($table) {
$table->decimal('cost', 15, 4)->change(); $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) { Schema::table('clients', function ($table) {