<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateConfigsTable extends Migration
{
public function up()
{
Schema::create('configs', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->index();
$table->string('value')->default('');
$table->string('type')->default('text');
$table->string('tab')->default('main');
$table->integer('sort')->default(0);
});
}
public function down()
{
Schema::dropIfExists('configs');
}
}