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

7 lines
288 B
Python
Raw Normal View History

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