I've gotten a lot of positive feedback from my post on upgrading temporal columns from MySQL 5.5 to MySQL 5.6 format, both in the blog comments and directly from people who have used my query to identify which columns are candidates to be upgraded to the new format. Based on the feedback and some changes in more recent MySQL releases, I think it's worth doing a follow-up post.
Partioned tables
It was pointed out to me that the SQL query I used in my previous
post does not work for partitioned tables. The reason is the join
between information_schema.tables and
information_schema.innodb_sys_tables in my query.
For non-partitioned tables the value in
information_schema.innodb_sys_tables.name will be
<table_schema>/<table_name>, …