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
262 B
Python
Raw Normal View History

2020-07-31 14:00:22 +05:30
from __future__ import unicode_literals
import frappe
def execute():
2020-07-31 15:06:51 +05:30
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")