From f21f8cd34cda74cb29e6e71c4c8b66e834826192 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 9 Sep 2015 14:41:41 +0530 Subject: [PATCH] [fix] in schema sync, sync custom fields if installing any app other than frappe --- frappe/model/db_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/model/db_schema.py b/frappe/model/db_schema.py index 02ddc78a0a..deb27d7eda 100644 --- a/frappe/model/db_schema.py +++ b/frappe/model/db_schema.py @@ -142,7 +142,7 @@ class DbTable: precisions = {} uniques = {} - if not frappe.flags.in_install: + if not frappe.flags.in_install_db and frappe.flags.in_install != "frappe": custom_fl = frappe.db.sql("""\ SELECT * FROM `tabCustom Field` WHERE dt = %s AND docstatus < 2""", (self.doctype,), as_dict=1)