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