From 7e8f98368ab20121adadb56519d73b60dad58f0d Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Fri, 29 Nov 2013 19:57:38 +0530 Subject: [PATCH] [fix] allow lot of queries in update comments patch --- patches/1311/p04_update_comments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/1311/p04_update_comments.py b/patches/1311/p04_update_comments.py index aefb7e7b24..b076475318 100644 --- a/patches/1311/p04_update_comments.py +++ b/patches/1311/p04_update_comments.py @@ -3,6 +3,8 @@ def execute(): import webnotes + webnotes.conn.auto_commit_on_many_writes = True for name in webnotes.conn.sql_list("""select name from tabComment"""): webnotes.get_obj("Comment", name).update_comment_in_doc() - \ No newline at end of file + webnotes.conn.auto_commit_on_many_writes = False +