<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class MigrateAreaChina extends Migration { public function up() { goto uwn6P; YFfhB: \ModStart\Core\Dao\ModelManageUtil::statement("UPDATE `{$onV5E}` SET `id`=`areaId`"); goto sZ1qz; sZ1qz: Schema::table('area_china', function (Blueprint $onV5E) { $onV5E->renameColumn('parentAreaId', 'pid'); $onV5E->renameColumn('name', 'title'); $onV5E->dropColumn('areaId'); }); goto viqhC; uwn6P: $onV5E = \ModStart\Core\Dao\ModelManageUtil::table('area_china'); goto YFfhB; viqhC: } public function down() { } }