There is some funny conversion side-effect that I experience when converting DATETIME column to TIMESTAMP.
There are DATETIME values before conversion:
+---------------------+
| creation_date |
+---------------------+
| 2015-02-18 19:57:52 |
| 2015-02-18 19:57:18 |
| 2015-02-18 19:51:52 |
| 2015-02-18 19:51:29 |
+---------------------+
ALTER TABLE t CHANGE creation_date creation_date TIMESTAMP null DEFAULT null;
Same data after the conversion to TIMESTAMP:
+---------------------+
| creation_date |
+---------------------+
| 2015-02-18 19:58:52 |
| 2015-02-18 19:58:37 |
| 2015-02-18 19:53:52 |
| 2015-02-18 19:52:52 |
+---------------------+
No warnings were given during conversion.
I'm curious what is the reason of this change? Notice, that the delta for every row is different. For the first row it's one minute, for the second 79 seconds.
MySQL version: 5.1.73