Migration fail v4 -> v5


There is a solution for this, as you have deleted a recurring invoice at some stage, there will be a reference to this recurring invoice in the recurring_invoice_id column on the invoices table.

If you can find this delete reference and set the column to null, the migration will work as expected.