<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateMemberDeleteTable extends Migration { public function up() { goto AuMJP; ESfXw: Schema::create('member_deleted', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->string('username', 50)->nullable()->comment('用户名'); $onV5E->string('phone', 20)->nullable()->comment('手机'); $onV5E->string('email', 200)->nullable()->comment('邮箱'); $onV5E->text('content')->comment('其他数据'); }); goto NBiOx; AuMJP: Schema::table('member_user', function (Blueprint $onV5E) { $onV5E->bigInteger('deleteAtTime')->nullable()->comment('已删除'); $onV5E->tinyInteger('isDeleted')->nullable()->comment('已删除'); $onV5E->index(array('deleteAtTime')); }); goto ESfXw; NBiOx: \ModStart\Core\Dao\ModelUtil::updateAll('member_user', array('isDeleted' => false)); goto SalXM; SalXM: } public function down() { } }