2019-01-22 12:52:20 +00:00
|
|
|
from __future__ import unicode_literals
|
2018-10-10 09:18:49 +00:00
|
|
|
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")
|