<?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 $GocOS) { $GocOS->integer('vipId')->nullable()->comment(''); $GocOS->date('vipExpire')->nullable()->comment(''); }); Schema::create('member_vip_set', function (Blueprint $GocOS) { $GocOS->increments('id'); $GocOS->timestamps(); $GocOS->string('title', 50)->nullable()->comment('名称'); $GocOS->string('flag', 50)->nullable()->comment('标识'); $GocOS->integer('pid')->nullable()->comment('排序'); $GocOS->integer('sort')->nullable()->comment('排序'); $GocOS->tinyInteger('isDefault')->nullable()->comment('默认'); $GocOS->string('icon', 100)->nullable()->comment('图标'); $GocOS->decimal('price', 20, 2)->nullable()->comment(''); $GocOS->integer('vipDays')->nullable()->comment(''); $GocOS->text('content')->nullable()->comment('说明'); }); } public function down() { } }