| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateTestItemsTable.
- */
- class CreateTestItemsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('test_items', function(Blueprint $table) {
- $table->increments('id');
- $table->string('title')->default('')->comment("测试单元标题");
- $table->integer('assert_num')->default(0)->comment("断言数量");
- $table->integer('assert_ok_num')->default(0)->comment("断言成功数量");
- $table->integer('assert_no_num')->default(0)->comment("断言失败数量");
- $table->text('assert_text')->comment("断言说明");
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('test_items');
- }
- }
|