I've picked up on a project that's a few years old, and noted CURRENT_TIMESTAMP is being sent with a lot of the php calls to update the datetime field in a lot of rows. This works perfectly on the live environment - however, on my local setup, it does not.
Both the Live DB, and my local version from the WAMP64 download are running on MySQL5.7.19.
A PHP script running a query that involves inserting CURRENT_TIMESTAMP will return back with the following error;
Invalid default value for 'last_update' timestamp
Again though, on the live server, this works without issue. Both are using MySQLi to carry out these insert queries.
Is there something I'm missing here? Some sort of server-side config setting that allows CURRENT_TIME to be inserted into the timestamp field?