Check types when upgrading schema