<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateGoods3dImage extends Migration { public function up() { Schema::create('goods_3d_image', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('goodsId')->nullable()->comment('分类ID'); $onV5E->string('image', 200)->nullable()->comment(''); $onV5E->integer('sort')->nullable()->comment(''); $onV5E->index('goodsId'); }); } public function down() { } }