From c70e8d9791160679f1d065d9bc4cf64cc7c61683 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 21 Feb 2012 17:30:36 +0530 Subject: [PATCH] fix in remove_archive --- erpnext/patches/jan_mar_2012/remove_archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/jan_mar_2012/remove_archive.py b/erpnext/patches/jan_mar_2012/remove_archive.py index 5f2cdab8c0..1b914d5606 100644 --- a/erpnext/patches/jan_mar_2012/remove_archive.py +++ b/erpnext/patches/jan_mar_2012/remove_archive.py @@ -8,7 +8,7 @@ def execute(): from webnotes.utils import archive arc_tables = webnotes.conn.sql('show tables like "arc%"') try: - webnotes.conn.auto_commit_on_excess = 1 + webnotes.conn.auto_commit_on_many_writes = 1 for tab in arc_tables: tab = tab[0] dt = tab[3:]