<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAreaChina extends Migration { public function up() { Schema::dropIfExists('area_china'); Schema::create('area_china', function (Blueprint $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->integer('areaId')->nullable()->comment('地区ID'); $tM63P->integer('parentAreaId')->nullable()->comment('父ID'); $tM63P->integer('sort')->nullable()->comment('排序'); $tM63P->string('name', 50)->nullable()->comment('名称'); $tM63P->index(array('areaId')); $tM63P->index(array('parentAreaId')); }); } public function down() { } }