brotherton-erpnext/erpnext/patches/v11_0/drop_column_max_days_allowed.py
2021-08-19 13:43:28 +05:30

8 lines
264 B
Python

from __future__ import unicode_literals
import frappe
def execute():
if frappe.db.exists("DocType", "Leave Type"):
if 'max_days_allowed' in frappe.db.get_table_columns("Leave Type"):
frappe.db.sql("alter table `tabLeave Type` drop column max_days_allowed")