I have a table APPLEVARIETY. It has the following columns:
- id
- family
- color
- description (TEXT)
- description_last_update_time (TIMESTAMP)
For the latter column I would like to use 'ON UPDATE CURRENT_TIMESTAMP'. However, this will cause the timestamp to be updated if at least one of the other columns are updated (id, family, color).
Instead I would like to specify that the description_last_update_time will get the CURRENT_TIMESTAMP if only the description column is updated. It should ignore updates on the rest of the columns.
I have looked through the MySQL manual, other questions on stackoverflow and of course used google extensively but found nothing.
So in other words: is there some way to specify a certain column with ON UPDATE? Is it even possible or am I moving in the wrong direction?