Hi Matty.
This solution solved this https://discuss.frappe.io/t/unable-to-update-v12-to-v13/65512/24
Thanks