From 4bb8bf4b7505d8f4094c839628b2aa0c79b75f4a Mon Sep 17 00:00:00 2001 From: nabinhait Date: Wed, 6 Jul 2011 10:11:11 +0530 Subject: [PATCH] clear sessions of all users after running patch of erpnext restructure --- patches/patch.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/patches/patch.py b/patches/patch.py index 53d7f10698..dfff475d6f 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 310 +last_patch = 312 #------------------------------------------- @@ -1225,3 +1225,9 @@ def execute(patch_no): elif patch_no == 310: from erpnext_structure_cleanup import run_patches run_patches() + elif patch_no == 311: + sql("update `tabDocField` set reqd = 0 where fieldname = 'select_item' and parent = 'Property Setter'") + reload_doc('core', 'doctype', 'property_setter') + elif patch_no == 312: + sql("delete from `tabSessions`") + sql("delete from `__SessionCache`")