From bd74036e0728c95f47d970ac657f8a67c89231f0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 6 Mar 2017 14:32:57 +0530 Subject: [PATCH] [minor] [patch] drop in_dialog column in DocType --- frappe/patches.txt | 1 + frappe/patches/v8_0/drop_in_dialog.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 frappe/patches/v8_0/drop_in_dialog.py diff --git a/frappe/patches.txt b/frappe/patches.txt index e1e0a2dad4..4a0308287f 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -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 diff --git a/frappe/patches/v8_0/drop_in_dialog.py b/frappe/patches/v8_0/drop_in_dialog.py new file mode 100644 index 0000000000..f1af338f08 --- /dev/null +++ b/frappe/patches/v8_0/drop_in_dialog.py @@ -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') \ No newline at end of file