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