dropUnique(['username']); $table->dropColumn('username'); $table->dropColumn('sftp_password'); }); } /** * Reverse the migrations. */ public function down() { Schema::table('servers', function (Blueprint $table) { $table->string('username')->nullable()->after('image')->unique(); $table->text('sftp_password')->after('image'); }); } }