2021_06_18_150129_create_terminal_printers_table.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateTerminalPrintersTable 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('terminal_printers', function (Blueprint $table) {
  22. $table->id();
  23. $table->string('terminal_id')->comment('终端id');
  24. $table->string('printer_name')->comment('打印机名称');
  25. $table->string('alias_name')->comment('打印机别名');
  26. $table->timestamps();
  27. });
  28. }
  29. /**
  30. * Reverse the migrations.
  31. *
  32. * @return void
  33. */
  34. public function down()
  35. {
  36. Schema::dropIfExists('terminal_printers');
  37. }
  38. }