alembic: Fix errors during upgrade head.