MYSQL VERSION - 5.7.14
In mysql version I am not able to insert timestamp value with null
in insert query.
I tried to alter the timestamp coulmn in mysql with the below query:
ALTER TABLE `business` MODIFY `created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL;
ALTER TABLE `business` MODIFY `modified` TIMESTAMP on update CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL;
But I am getting the error
#1067 - Invalid default value for 'modified'