소스 검색

[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 = {}
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)


불러오는 중...
취소
저장