Issues

Issue #78 resolved

Autogenerate does not detect decorated column type correctly

Robert Buchholz
created an issue

As per the SA example at http://docs.sqlalchemy.org/en/rel_0_7/orm/extensions/mutable.html#establishing-mutability-on-scalar-column-values

I have defined the TypeDecorator and used it as

parameters = Column(JSONEncodedDict(4096))

The auto-generated migration contains:

op.add_column('table', sa.Column('parameters', sa.JSONEncodedDict(), nullable=True))

When it should be

op.add_column('table', sa.Column('parameters', sa.VARCHAR(length=4096), nullable=True))

Comments (3)

  1. Log in to comment