AddInvoiceTypeSupport::down PHP Method

down() public method

Reverse the migrations.
public down ( ) : void
return void
    public function down()
    {
        if (Schema::hasColumn('invoices', 'invoice_type_id')) {
            DB::update('update invoices set invoice_type_id = invoice_type_id - 1');
        }
        Schema::table('accounts', function ($table) {
            $table->dropColumn('enable_second_tax_rate');
        });
    }
AddInvoiceTypeSupport