Add rename_field

This commit is contained in:
Faris Ansari 2018-05-22 15:26:21 +05:30 committed by GitHub
parent d2b4ec5044
commit 7a5221bd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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