[fix]remove employee field from tab salary structure

This commit is contained in:
Saurabh 2017-09-18 16:17:13 +05:30
parent 590d401e5f
commit 9c334c34a6

View File

@ -2,4 +2,4 @@ import frappe
def execute():
if 'employee' in frappe.db.get_table_columns("Salary Structure"):
frappe.db.sql("alter table `tabEmployee` drop column employee")
frappe.db.sql("alter table `tabSalary Structure` drop column employee")