| 1234567891011121314151617181920212223242526272829303132333435363738 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- class CreateHelpsTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('helps', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->integer('type_id')->comment('帮助分类id');
 
-             $table->integer('parent_id')->comment('帮助分类父id');
 
-             $table->string('title')->comment('标题');
 
-             $table->text('content')->comment('内容');
 
-             $table->smallInteger('list_order')->comment('显示顺序');
 
-             $table->integer('click')->comment('点击量');
 
-             $table->timestamps();
 
-             $table->softDeletes();
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('helps');
 
-     }
 
- }
 
 
  |