2020_07_24_111127_create_sys_configs_table.php 890 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateSysConfigsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('sys_configs', function (Blueprint $table) {
  15. $table->id();
  16. $table->string('name')->nullable()->comment('系统名');
  17. $table->string('hotline_number')->nullable()->comment('咨询电话');
  18. $table->string('hot_search')->nullable()->comment('热搜索关键词');
  19. $table->timestamps();
  20. $table->softDeletes();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::dropIfExists('sys_configs');
  31. }
  32. }