| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateTerminalPrintersTable extends Migration
- {
- // private $parent_name = '打印机';
- //
- // private $names = [
- // '打印机-添加' => '基础设置-快递打印-打印机-添加',
- // '打印机-编辑' => '基础设置-快递打印-打印机-编辑',
- // '打印机-删除' => '基础设置-快递打印-打印机-删除',
- // ];
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('terminal_printers', function (Blueprint $table) {
- $table->id();
- $table->string('terminal_id')->comment('终端id');
- $table->string('printer_name')->comment('打印机名称');
- $table->string('alias_name')->comment('打印机别名');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('terminal_printers');
- }
- }
|