Browse Source

[fix] in schema sync, sync custom fields if installing any app other than frappe

version-14
Anand Doshi 10 years ago
parent
commit
f21f8cd34c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/model/db_schema.py

+ 1
- 1
frappe/model/db_schema.py View File

@@ -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)


Loading…
Cancel
Save