string('nodelist_filename')->nullable(); $table->bigInteger('nodelist_filearea_id')->nullable(); $table->foreign('nodelist_filearea_id')->references('id')->on('fileareas'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('domains', function (Blueprint $table) { $table->dropForeign(['nodelist_filearea_id']); $table->dropColumn(['nodelist_filename','nodelist_filearea_id']); }); } };