1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreatePolicyTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('policy', function (Blueprint $table) {
- $table->increments('id');
- $table->smallInteger('type_id')->length(5);
- $table->smallInteger('parentid')->length(5);
- $table->string('title')->length(100);
- $table->mediumText('content');
- $table->string('tit_color')->length(10)->nullable();
- $table->tinyInteger('tit_b')->length(1);
- $table->string('small_img')->length(255)->nullable();
- $table->string('author')->length(50)->nullable();
- $table->string('source')->length(100)->nullable();
- $table->tinyInteger('focos')->length(3);
- $table->tinyInteger('is_display')->length(3);
- $table->string('is_url')->length(200);
- $table->string('seo_keywords')->length(100)->nullable();
- $table->string('seo_description')->length(200)->nullable();
- $table->integer('click')->length(10);
- $table->integer('addtime')->length(10);
- $table->smallInteger('article_order')->length(5);
- $table->string('level_id')->length(100)->nullable();
- $table->string('level_name')->length(255)->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('policy');
- }
- }
|