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.

7 lines
261 B
Python
Raw Normal View History

2020-07-31 08:30:22 +00:00
from __future__ import unicode_literals
import frappe
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")