Added common function used by alembic to handle nullabel=False.