From b25d28e023a629dd2463015219773a0d37bc1144 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 2 Sep 2021 14:53:06 +0530 Subject: [PATCH] fix(patch): delete stale shopify doctypes (#27313) --- erpnext/patches.txt | 3 ++- erpnext/patches/v14_0/delete_shopify_doctypes.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 erpnext/patches/v14_0/delete_shopify_doctypes.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index ca7295281ae..f7f3ddf7fdf 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -301,4 +301,5 @@ erpnext.patches.v13_0.einvoicing_deprecation_warning erpnext.patches.v13_0.custom_fields_for_taxjar_integration erpnext.patches.v14_0.delete_einvoicing_doctypes erpnext.patches.v13_0.set_operation_time_based_on_operating_cost -erpnext.patches.v13_0.validate_options_for_data_field \ No newline at end of file +erpnext.patches.v13_0.validate_options_for_data_field +erpnext.patches.v14_0.delete_shopify_doctypes diff --git a/erpnext/patches/v14_0/delete_shopify_doctypes.py b/erpnext/patches/v14_0/delete_shopify_doctypes.py new file mode 100644 index 00000000000..f45082a1a5d --- /dev/null +++ b/erpnext/patches/v14_0/delete_shopify_doctypes.py @@ -0,0 +1,5 @@ +import frappe + +def execute(): + frappe.delete_doc("DocType", "Shopify Settings", ignore_missing=True) + frappe.delete_doc("DocType", "Shopify Log", ignore_missing=True)