<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class ResCatMap extends Migration { public function up() { Schema::create('res_cat_map', function (Blueprint $GocOS) { $GocOS->increments('id'); $GocOS->timestamps(); $GocOS->integer('assetId')->nullable()->comment(''); $GocOS->integer('catId')->nullable()->comment(''); $GocOS->index(array('assetId')); $GocOS->index(array('catId')); }); } public function down() { } }