From 2cda6827a4982721e0cbd40b2a62f6d320c644fc Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 9 Sep 2011 15:52:33 +0530 Subject: [PATCH] no patches on accounts db --- cgi-bin/webnotes/modules/patch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cgi-bin/webnotes/modules/patch.py b/cgi-bin/webnotes/modules/patch.py index 5ecd84446c..6ff55fd528 100644 --- a/cgi-bin/webnotes/modules/patch.py +++ b/cgi-bin/webnotes/modules/patch.py @@ -5,6 +5,10 @@ def run(log_exception=1): from patches import patch from webnotes.utils import cint + if webnotes.conn.cur_db_name=='accounts': + # no patches on accounts + return + next_patch = cint(webnotes.conn.get_global('next_patch')) if next_patch <= patch.last_patch: