From 14f46a3e2676a6b92abc74383c6c7afab4f21400 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:14:37 +0530 Subject: [PATCH] fix: check null values in is_cancelled patch (#30594) (#30595) (cherry picked from commit bb875fe217d5d5ac61a01e564fb115c2f1989788) Co-authored-by: Ankush Menat --- erpnext/patches/v12_0/update_is_cancelled_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v12_0/update_is_cancelled_field.py b/erpnext/patches/v12_0/update_is_cancelled_field.py index b567823b062..398dd700eda 100644 --- a/erpnext/patches/v12_0/update_is_cancelled_field.py +++ b/erpnext/patches/v12_0/update_is_cancelled_field.py @@ -20,7 +20,7 @@ def execute(): """ UPDATE `tab{doctype}` SET is_cancelled = 0 - where is_cancelled in ('', NULL, 'No')""".format( + where is_cancelled in ('', 'No') or is_cancelled is NULL""".format( doctype=doctype ) )