fix: check null values in is_cancelled patch (#30594)
This commit is contained in:
parent
4895761d89
commit
bb875fe217
@ -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
|
||||
)
|
||||
)
|
||||
|
@ -10,7 +10,7 @@ def execute():
|
||||
"""
|
||||
UPDATE `tab{doctype}`
|
||||
SET is_subcontracted = 0
|
||||
where is_subcontracted in ('', NULL, 'No')""".format(
|
||||
where is_subcontracted in ('', 'No') or is_subcontracted is null""".format(
|
||||
doctype=doctype
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user