See https://github.com/sqlalchemy/alembic/issues/745 and https://github.com/sqlalchemy/alembic/commit/1977047a11124221461ad8daee502bc4c74d5f6c