D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
euphoriahub.store
/
database
/
migrations
/
Filename :
2021_10_02_190207_create_cart_shippings_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCartShippingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cart_shippings', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('cart_group_id')->nullable(); $table->bigInteger('shipping_method_id')->nullable(); $table->float('shipping_cost')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cart_shippings'); } }