<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateIndexSetting extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('index_setting', function (Blueprint $table) { $table->increments('id'); $table->string('wechat_qrcode')->comment('微信二维码地址'); $table->string('sina_qrcode')->comment('微博二维码地址'); $table->string('logo_path')->comment('logo地址'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('index_setting'); } }