If you want to deploy this before migrating the DB, might be worth doing a check with the original case and falling back to lower().

I don't know what your deployment/migration schedule is like, so this may be irrelevant.