2021_06_18_150046_create_terminals_table.php 1012 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateTerminalsTable extends Migration
  6. {
  7. // private $parent_name = '基础设置-快递打印-终端';
  8. //
  9. // private $names = [
  10. // '添加' => '基础设置-快递打印-终端-添加',
  11. // '编辑' => '基础设置-快递打印-终端-编辑',
  12. // '删除' => '基础设置-快递打印-终端-删除',
  13. // ];
  14. /**
  15. * Run the migrations.
  16. *
  17. * @return void
  18. */
  19. public function up()
  20. {
  21. Schema::create('terminals', function (Blueprint $table) {
  22. $table->id();
  23. $table->string('name')->comment('计算机别名');
  24. $table->string('ip')->comment('计算机ip地址');
  25. $table->timestamps();
  26. });
  27. }
  28. /**
  29. * Reverse the migrations.
  30. *
  31. * @return void
  32. */
  33. public function down()
  34. {
  35. Schema::dropIfExists('terminals');
  36. }
  37. }