From 782fb801ecf63bef43b886968c131463a9ca0f1c Mon Sep 17 00:00:00 2001 From: phot0n Date: Thu, 16 Jun 2022 14:28:04 +0530 Subject: [PATCH] fix: ignore if integration_type column doesn't exist (for direct v14 installations) for integration request patch --- frappe/patches/v14_0/update_integration_request.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/patches/v14_0/update_integration_request.py b/frappe/patches/v14_0/update_integration_request.py index 7d491461e3..d067411166 100644 --- a/frappe/patches/v14_0/update_integration_request.py +++ b/frappe/patches/v14_0/update_integration_request.py @@ -3,6 +3,10 @@ import frappe def execute(): doctype = "Integration Request" + + if not frappe.db.has_column(doctype, "integration_type"): + return + frappe.db.set_value( doctype, {"integration_type": "Remote", "integration_request_service": ("!=", "PayPal")},