fix: check null values in is_cancelled patch (#30594) (#30595)

(cherry picked from commit bb875fe217)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2022-04-06 15:14:37 +05:30
committed by GitHub
parent 50e753330f
commit 14f46a3e26

View File

@@ -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
)
)