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