MariaDB
Change timestamp on update and insert
ALTER TABLE <table name>
CHANGE
`<column name>` datetime
TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
ALTER TABLE <table name>
CHANGE
`<column name>` datetime
TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP