Merge pull request #908 from denisdulici/master

Fixed item creation
This commit is contained in:
Denis Duliçi 2019-11-17 16:27:03 +03:00 committed by GitHub
commit c6b20ccd7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ class ModifySkuQuantityColumnItemsTable extends Migration
Schema::table('items', function (Blueprint $table) { Schema::table('items', function (Blueprint $table) {
$table->string('sku')->nullable()->change(); $table->string('sku')->nullable()->change();
$table->integer('quantity')->default(1)->change(); $table->integer('quantity')->default(1)->change();
$table->dropUnique('items_company_id_sku_deleted_at_unique'); $table->dropUnique(['company_id', 'sku', 'deleted_at']);
}); });
} }