[minor] [patch] drop in_dialog column in DocType

This commit is contained in:
Rushabh Mehta 2017-03-06 14:32:57 +05:30
parent 7a08311817
commit bd74036e07
2 changed files with 6 additions and 0 deletions

View file

@ -165,3 +165,4 @@ execute:frappe.rename_doc('Country', 'Tanzania, United Republic of', 'Tanzania',
execute:frappe.rename_doc('Country', 'Syrian Arab Republic', 'Syria', ignore_if_exists=True)
frappe.patches.v8_0.rename_listsettings_to_usersettings
frappe.patches.v7_2.update_communications
frappe.patches.v8_0.drop_in_dialog

View file

@ -0,0 +1,5 @@
import frappe
def execute():
if frappe.db.has_column('DocType', 'in_dialog'):
frappe.db.sql('alter table tabDocType drop column in_dialog')