1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateTableSubjectTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('cms_subject', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->integer('city_id');
- $table->string('city_name',20)->comment('城市名称'); //城市名称
- $table->string('title',70)->comment('专题名称');
- $table->tinyInteger('show_type')->default(0)->comment('商品展示方式:0:左图右字;1:通栏大图;2:左右滑动');
- $table->tinyInteger('is_open')->default(0)->comment('是否启用:0:开启;1:关闭');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('cms_subject');
- }
- }
|