mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
Add rename_field
This commit is contained in:
@@ -7,4 +7,6 @@ def execute():
|
|||||||
WHERE trim(coalesce(max_days_allowed, '')) = ''
|
WHERE trim(coalesce(max_days_allowed, '')) = ''
|
||||||
""")
|
""")
|
||||||
frappe.db.sql_ddl("""ALTER table `tabLeave Type` modify max_days_allowed int(8) NOT NULL""")
|
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