Fix type field in MySQL in newer versions been different from migrated versions.