I executed the following query on my mysql server:
CREATE TABLE user(
created_at timestamp NOT NULL,
updated_at timestamp NOT NULL,
id integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
count integer NOT NULL,
name varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_general_ci
When I looked into phpmyadmin I was suprised.
created_at column had a default set to
ON UPDATE CURRENT_TIMESTAMP was also there.
How can this even happen?
It shouldnt do that, right?