<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateConfig extends Migration
{
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('config', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('key', 100)->nullable()->comment('键值');
$table->text('value')->nullable()->comment('值');
$table->index('key');
});
}
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}