Files
schuetz3-erpnext/erpnext/patches/v11_0/drop_column_max_days_allowed.py
Ankush Menat c07713b860 style: bulk format code with black
v13 port because otherwise backports will result in conflicts always
2022-03-29 17:29:34 +05:30

8 lines
225 B
Python

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")