I'm trying to run a script to modify a database, this query
ALTER TABLE cmContentVersion CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
gives this error
ERROR 1067 (42000) at line 68: Invalid default value for 'modifiedDateTime'
Warning (Code 1264): Out of range value for column 'modifiedDateTime' at row 1
Error (Code 1067): Invalid default value for 'modifiedDateTime'
the column modifiedDateTime
is defined as
`modifiedDateTime` datetime NOT NULL default '0000-00-00 00:00:00',
Question: Is there a valid "invalid" default value that can replace 0000-00-00 00:00:00
when using utf8_general_ci. Or do I have to tell the developers to stop relying on an "invalid date" in their code?