Try changing the table using the ON UPDATE keyword, for example:
ALTER TABLE `tableName` CHANGE `modified_on` `modified_on` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
Or you can add a default value when pasting as:
ALTER TABLE `tableName` CHANGE `modified_on` `modified_on` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ;
You can also define ON UPDATE for the timestamp data type when creating the table.
source share