custom price nullable in cart items

This commit is contained in:
rahul shukla 2019-06-07 10:06:00 +05:30
parent af67516c36
commit f924e7ed01
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateCustomPriceToNullableInCartItems extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cart_items', function (Blueprint $table) {
$table->decimal('custom_price', 12,4)->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}