First you need to make the column nullable:
@ Mysql5.7
Wrong :
update episodes set 'ending' = NULL WHERE 'ending' = '0000-00-00'
Correct :
update episodes set 'ending' = NULL WHERE 'ending' = 0000-00-00
Note. Remove the quote from the date value in the where clause. Hope this helps someone
source share