From 28eae6e9ff1d002e8232a60bcfc9c451a11fa745 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 29 Apr 2013 15:25:52 +0530 Subject: [PATCH] [patch] [file data] fix --- patches/april_2013/p07_update_file_data_2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patches/april_2013/p07_update_file_data_2.py b/patches/april_2013/p07_update_file_data_2.py index 7b89a9de77..2405e80d65 100644 --- a/patches/april_2013/p07_update_file_data_2.py +++ b/patches/april_2013/p07_update_file_data_2.py @@ -6,6 +6,9 @@ def execute(): 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): doctype = doctype[3:] + + if not webnotes.conn.exists("DocType", doctype): continue + update_file_list(doctype, singles) webnotes.conn.sql("""delete from `tabCustom Field` where fieldname='file_list'