Updating to 3.0.5 - Database Errors

I don’t think I have a backup sooner than 3.0.3, which was giving me the same issues. And yes, I’m still getting the error. I’m commenting out this line, is it correct?

Schema::table('payment_types', function($table)
{
/*$table->foreign('gateway_type_id')->references('id')->on('gateway_types')->onDelete('cascade');*/
});

That looks correct to me, you could also comment out the whole Schema::table section.

Unfortunately the error is still appearing. I’m not 100% sure what to do - all of the tables and columns being referenced seem to be in my database.

I’m not sure, you may need to ask a developer for help.

You can submit a request here: https://www.thedevelopers.ro/customisation-request-invoiceninja/

If you want to email your database backup to contact@invoiceninja.com we can try to reproduce the upgrade problem.