UPDATED:
- It looks like you didn't changed
DELIMITER
. - You most likely meant
CURRENT_TIMESTAMP
instead of nonexistentCURTIMESTAMP()
That being said a syntactically correct version of your trigger might look like
DELIMITER $$
CREATE TRIGGER users_update_trigger
AFTER UPDATE ON users
FOR EACH ROW
BEGIN
INSERT INTO users_backlog (user_id, description, datetime) VALUES
(NEW.user_id, CONCAT('modified from ', OLD.hourly, ' to ', NEW.hourly), CURRENT_TIMESTAMP);
END$$
DELIMITER ;
or (because you have the only one statement in your trigger you can omit BEGIN ... END
block and DELIMITER
) simply
CREATE TRIGGER users_update_trigger
AFTER UPDATE ON users
FOR EACH ROW
INSERT INTO users_backlog (user_id, description, datetime) VALUES
(NEW.user_id, CONCAT('modified from ', OLD.hourly, ' to ', NEW.hourly), NOW());
Here is SQLFiddle demo