I'm trying to update the default values of two date fields in an existing database. The output of SHOW CREATE TABLE for these two fields is:
`dateIn` date DEFAULT '0000-00-00',
`dateDue` date DEFAULT '0000-00-00',
However, when I attempt to update one either through the command line or via phpMyAdmin, I receive an error regarding the other field.
mysql> ALTER TABLE job MODIFY COLUMN dateIn date DEFAULT NULL;
ERROR 1067 (42000): Invalid default value for 'dateDue'
Note that the field in the error is not the one in the command. How can I resolve this issue without destroying data?