fix: doctype name in patch

This commit is contained in:
Shivam Mishra 2020-07-31 15:06:51 +05:30
parent 3a67a78ece
commit 733bde31c9

View File

@ -2,6 +2,6 @@ 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")
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")