Alembic not respecting custom TypeDecorators when autogenerating revisions.

Issue #265 duplicate
Savor d'Isavano
created an issue

I installed sqlalchemy_utils that has support for UUID types(via sqlalchemy_utils.UUIDType). Autogenerating revision succeeds, except it believes UUIDType belongs to the sqlalchemy module:

import sqlalchemy as sa

sa.Column('operation_id', sa.UUIDType(), nullable=True)

And upgrade will fail.

After manually importing sqlalchemy_utils and using correct class reference upgrade will succeed with correct database schemas.

Comments (2)

  1. Log in to comment