brotherton-erpnext/erpnext/patches/v13_0/drop_razorpay_payload_column.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
223 B
Python
Raw Normal View History

2020-07-31 08:30:22 +00:00
import frappe
2020-07-31 08:30:22 +00:00
def execute():
2020-07-31 09:36:51 +00:00
if frappe.db.exists("DocType", "Membership"):
if "webhook_payload" in frappe.db.get_table_columns("Membership"):
frappe.db.sql("alter table `tabMembership` drop column webhook_payload")