2020_11_13_162845_create_test_infos_table.php 783 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateTestInfosTable.
  6. */
  7. class CreateTestInfosTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('test_infos', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('test_num')->default(0)->comment("测试功能数量");
  19. $table->integer('test_ok_num')->default(0)->comment("测试成功数量");
  20. $table->integer('test_no_num')->default(0)->comment("测试失败数量");
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::drop('test_infos');
  32. }
  33. }