| 12345678910111213141516171819202122232425262728293031323334 | <?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;class CreateDeviceNamesTable extends Migration{    /**     * Run the migrations.     *     * @return void     */    public function up()    {        Schema::create('device_names', function (Blueprint $table) {            $table->increments('id');            $table->unsignedInteger('device_id')->nullable()->comment('设备类型ID');            $table->string('name', 200)->nullable()->comment('设备名');            $table->integer('sort')->nullable();            $table->timestamps();        });    }    /**     * Reverse the migrations.     *     * @return void     */    public function down()    {        Schema::dropIfExists('device_names');    }}
 |