Skip to content

Commit

Permalink
chore: patch to delete Payment Gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Sep 27, 2023
1 parent b1770b3 commit 296b233
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,5 +344,6 @@ erpnext.patches.v15_0.delete_woocommerce_settings_doctype
erpnext.patches.v14_0.migrate_deferred_accounts_to_item_defaults
erpnext.patches.v14_0.update_invoicing_period_in_subscription
execute:frappe.delete_doc("Page", "welcome-to-erpnext")
erpnext.patches.v15_0.delete_payment_gateway_doctypes
# below migration patch should always run last
erpnext.patches.v14_0.migrate_gl_to_payment_ledger
6 changes: 6 additions & 0 deletions erpnext/patches/v15_0/delete_payment_gateway_doctypes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import frappe


def execute():
for dt in ("GoCardless Settings", "GoCardless Mandate", "Mpesa Settings"):
frappe.delete_doc("DocType", dt, ignore_missing=True)

0 comments on commit 296b233

Please sign in to comment.