fix(leave-type): Drop column max_days_allowed (#15642)
This commit is contained in:
parent
4cfff7829b
commit
dd87e0f1e2
@ -568,4 +568,5 @@ erpnext.patches.v11_0.remove_land_unit_icon
|
||||
erpnext.patches.v11_0.add_default_dispatch_notification_template
|
||||
erpnext.patches.v11_0.add_market_segments
|
||||
erpnext.patches.v11_0.add_sales_stages
|
||||
erpnext.patches.v11_0.drop_column_max_days_allowed
|
||||
erpnext.patches.v11_0.change_healthcare_desktop_icons
|
||||
|
6
erpnext/patches/v11_0/drop_column_max_days_allowed.py
Normal file
6
erpnext/patches/v11_0/drop_column_max_days_allowed.py
Normal file
@ -0,0 +1,6 @@
|
||||
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")
|
Loading…
x
Reference in New Issue
Block a user