<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberVip extends Migration { public function up() { Schema::table('member_user', function (Blueprint $tM63P) { $tM63P->integer('vipId')->nullable()->comment(''); $tM63P->date('vipExpire')->nullable()->comment(''); }); Schema::create('member_vip_set', function (Blueprint $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->string('title', 50)->nullable()->comment('名称'); $tM63P->string('flag', 50)->nullable()->comment('标识'); $tM63P->integer('pid')->nullable()->comment('排序'); $tM63P->integer('sort')->nullable()->comment('排序'); $tM63P->tinyInteger('isDefault')->nullable()->comment('默认'); $tM63P->string('icon', 100)->nullable()->comment('图标'); $tM63P->decimal('price', 20, 2)->nullable()->comment(''); $tM63P->integer('vipDays')->nullable()->comment(''); $tM63P->text('content')->nullable()->comment('说明'); }); } public function down() { } }