tinyInteger('processing_fee_collection_method')->nullable()->after('processing_fee_by_merchant'); } if (!Schema::hasColumn('pro_forma_invoice', 'cersai_collection_method')) { $table->tinyInteger('cersai_collection_method')->nullable()->after('cersai_hypothecation_charge'); } if (!Schema::hasColumn('pro_forma_invoice', 'legal_charges_collection_method')) { $table->tinyInteger('legal_charges_collection_method')->nullable()->after('cersai_collection_method'); } }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('pro_forma_invoice', function (Blueprint $table) { foreach (['processing_fee_collection_method', 'cersai_collection_method', 'legal_charges_collection_method'] as $column) { if (Schema::hasColumn('pro_forma_invoice', $column)) { $table->dropColumn($column); } } }); } }