123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateThirdScalesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('third_scales', function (Blueprint $table) {
- $table->id();
-
- $table->string('mid')->comment('量表ID')->index();
- $table->string('title')->comment('量表名称')->index();
- $table->string('name')->comment('英文缩写')->index();
- $table->string('mc_title')->comment('分类名称')->nullable();
- $table->string('image_icon')->comment('图片')->nullable();
-
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('third_scales');
- }
- }
|