mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
[patch] [file data] fix
This commit is contained in:
@@ -6,6 +6,9 @@ def execute():
|
|||||||
for doctype in webnotes.conn.sql_list("""select table_name from `information_schema`.`columns`
|
for doctype in webnotes.conn.sql_list("""select table_name from `information_schema`.`columns`
|
||||||
where table_schema=%s and column_name='file_list'""", webnotes.conn.cur_db_name):
|
where table_schema=%s and column_name='file_list'""", webnotes.conn.cur_db_name):
|
||||||
doctype = doctype[3:]
|
doctype = doctype[3:]
|
||||||
|
|
||||||
|
if not webnotes.conn.exists("DocType", doctype): continue
|
||||||
|
|
||||||
update_file_list(doctype, singles)
|
update_file_list(doctype, singles)
|
||||||
|
|
||||||
webnotes.conn.sql("""delete from `tabCustom Field` where fieldname='file_list'
|
webnotes.conn.sql("""delete from `tabCustom Field` where fieldname='file_list'
|
||||||
|
|||||||
Reference in New Issue
Block a user