[patch] [file data] files in update file data patch
This commit is contained in:
parent
123f59dc89
commit
7bd7c8769e
11
patches/april_2013/p07_update_file_data_custom_field.py
Normal file
11
patches/april_2013/p07_update_file_data_custom_field.py
Normal file
@ -0,0 +1,11 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
from patches.april_2013.p05_update_file_data import update_file_list, get_single_doctypes
|
||||
singles = get_single_doctypes()
|
||||
for doctype in webnotes.conn.sql("""select parent from `tabCustom Field` where
|
||||
fieldname='file_list' and fieldtype='Text'"""):
|
||||
update_file_list(doctype, singles)
|
||||
|
||||
webnotes.conn.sql("""delete from `tabCustom Field` where fieldname='file_list'
|
||||
and parent=%s""", doctype)
|
||||
|
Loading…
x
Reference in New Issue
Block a user