2018_01_24_185029_create_explain_info_table.php
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateExplainInfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('explain_info', function (Blueprint $table) {
$table->increments('id');
$table->string('title')->nullable()->comment('讲解点英文标题');
$table->integer('explain_id')->default(0)->comment('景点id');
$table->string('img_url', 255)->nullable()->comment('讲解点图片地址');
$table->string('img_size', 45)->nullable()->comment('讲解点图片大小');
$table->text('describetion')->comment('讲解点内容');
$table->string('audio_url', 255)->comment('讲解点音频地址');
$table->integer('audio_size')->comment('讲解点音频大小');
$table->string('language')->comment('语言');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('explain_info');
}
}