2020_11_13_162901_create_test_items_table.php 931 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateTestItemsTable.
  6. */
  7. class CreateTestItemsTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('test_items', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->string('title')->default('')->comment("测试单元标题");
  19. $table->integer('assert_num')->default(0)->comment("断言数量");
  20. $table->integer('assert_ok_num')->default(0)->comment("断言成功数量");
  21. $table->integer('assert_no_num')->default(0)->comment("断言失败数量");
  22. $table->text('assert_text')->comment("断言说明");
  23. $table->timestamps();
  24. });
  25. }
  26. /**
  27. * Reverse the migrations.
  28. *
  29. * @return void
  30. */
  31. public function down()
  32. {
  33. Schema::drop('test_items');
  34. }
  35. }