fix migration error for MySQL
fix messages