浏览代码

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

version-14
Anand Doshi 10 年前
父节点
当前提交
f21f8cd34c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/model/db_schema.py

+ 1
- 1
frappe/model/db_schema.py 查看文件

@@ -142,7 +142,7 @@ class DbTable:
precisions = {} precisions = {}
uniques = {} 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("""\ custom_fl = frappe.db.sql("""\
SELECT * FROM `tabCustom Field` SELECT * FROM `tabCustom Field`
WHERE dt = %s AND docstatus < 2""", (self.doctype,), as_dict=1) WHERE dt = %s AND docstatus < 2""", (self.doctype,), as_dict=1)


正在加载...
取消
保存