create table t1 (c1 year, c2 year(2), c3 year(4));
YEAR type supports YEAR(2) and YEAR(4) specification: http://dev.mysql.com/doc/refman/6.0/en/numeric-type-overview.html. (Actually MySQL server accepts YEAR with any numeric parameter.) IDEA reports YEAR(N) as an error.