| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- <?php
 
- use Illuminate\Support\Facades\Schema;
 
- use Illuminate\Database\Schema\Blueprint;
 
- use Illuminate\Database\Migrations\Migration;
 
- class CreateNoticesTable extends Migration
 
- {
 
-     /**
 
-      * Run the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function up()
 
-     {
 
-         Schema::create('notices', function (Blueprint $table) {
 
-             $table->increments('id');
 
-             $table->integer('type_id')->index()->comment('公告分类id');
 
-             $table->string('title')->comment('公告标题');
 
-             $table->text('content')->comment('公告内容');
 
-             $table->string('tit_color')->comment('标题颜色');
 
-             $table->tinyInteger('tit_b')->comment('标题加粗:0:不加粗,1:为加粗');
 
-             $table->tinyInteger('is_display')->default('1')->comment('是否显示:1:显示 0:不显示');
 
-             $table->string('is_url')->comment('外链')->nullable();
 
-             $table->string('seo_keywords')->comment('Seo优化关键字')->nullable();
 
-             $table->string('seo_description')->comment('Seo描述')->nullable();
 
-             $table->integer('click')->comment('点击量');
 
-             $table->unsignedInteger('sort')->comment('排序');
 
-             $table->integer('subsite_id')->comment('分站id');
 
-             $table->timestamps();
 
-             $table->softDeletes();
 
-         });
 
-     }
 
-     /**
 
-      * Reverse the migrations.
 
-      *
 
-      * @return void
 
-      */
 
-     public function down()
 
-     {
 
-         Schema::dropIfExists('notices');
 
-     }
 
- }
 
 
  |