brotherton-erpnext/erpnext/patches/v8_10/add_due_date_to_gle.py

8 lines
202 B
Python
Raw Normal View History

from __future__ import unicode_literals
import frappe
def execute():
2017-09-04 13:40:54 +01:00
if not frappe.db.has_column("GL Entry", "due_date"):
2017-09-04 19:40:31 +01:00
frappe.db.sql("ALTER TABLE `tabGL Entry` ADD COLUMN `due_date` DATE NULL")