unsignedTinyInteger('id')->primary(); $table->string('name', 40)->unique()->comment('名稱'); }); } /** * Reverse the migrations. * * @return void */ public function down() { DB::statement('SET FOREIGN_KEY_CHECKS = 0'); Schema::dropIfExists('disks'); DB::statement('SET FOREIGN_KEY_CHECKS = 1'); } }