2018_01_24_184511_create_explain_table.php
721 Bytes
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateExplainTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('explain', function (Blueprint $table) {
$table->increments('id');
$table->string('name', 60)->comment('讲解点名称');
$table->integer('spot_id')->comment('景区id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('explain');
}
}