2022_10_18_092006_create_block_infos_table.php 777 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateBlockInfosTable.
  6. */
  7. class CreateBlockInfosTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('block_infos', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('analyze')->comment('扫描高度');
  19. $table->integer('num')->comment('最高高度');
  20. $table->string('coin_name')->comment('coin_name');
  21. $table->string('coin_id')->comment('coin_id');
  22. $table->timestamps();
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::drop('block_infos');
  33. }
  34. }