mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
Add rename_field
This commit is contained in:
@@ -7,4 +7,6 @@ def execute():
|
||||
WHERE trim(coalesce(max_days_allowed, '')) = ''
|
||||
""")
|
||||
frappe.db.sql_ddl("""ALTER table `tabLeave Type` modify max_days_allowed int(8) NOT NULL""")
|
||||
frappe.reload_doc("hr", "doctype", "leave_type")
|
||||
rename_field("Leave Type", "max_days_allowed", "max_continuous_days_allowed")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user