<?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 $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('areaId')->nullable()->comment('地区ID'); $onV5E->integer('parentAreaId')->nullable()->comment('父ID'); $onV5E->integer('sort')->nullable()->comment('排序'); $onV5E->string('name', 50)->nullable()->comment('名称'); $onV5E->index(array('areaId')); $onV5E->index(array('parentAreaId')); }); } public function down() { } }