[fix] allow lot of queries in update comments patch
diff --git a/patches/1311/p04_update_comments.py b/patches/1311/p04_update_comments.py
index aefb7e7..b076475 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
+