2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-12-13 09:54:33 +00:00
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
for dt in webnotes.conn.sql("""select distinct parent from tabDocField
|
|
|
|
where fieldname='file_list'"""):
|
|
|
|
try:
|
|
|
|
webnotes.conn.sql("""update `tab%s` set file_list =
|
|
|
|
replace(file_list, "-", "")""" % dt[0])
|
|
|
|
except Exception, e:
|
2013-11-12 11:58:17 +00:00
|
|
|
if e.args[0]!=1146: raise
|