custom price default to null

This commit is contained in:
rahul shukla 2019-06-07 11:12:40 +05:30
parent f924e7ed01
commit dc96dfb7b2
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@ class UpdateCustomPriceToNullableInCartItems extends Migration
public function up()
{
Schema::table('cart_items', function (Blueprint $table) {
$table->decimal('custom_price', 12,4)->nullable()->change();
$table->dropColumn('custom_price');
});
Schema::table('cart_items', function (Blueprint $table) {
$table->decimal('custom_price', 12,4)->nullable();
});
}