Fix const variables.

Use constant pointers to access constant array members of upgrade
schema.