Re: [sqlalchemy] alembic problem autogenerating migration scripts with sqlalchemy-utils column types

2015-01-06 Thread Ons
i am using the latest version (alembic 0.7.3). I still have the same error even after adding the user_module_prefix configuration. it still uses sa. as a prefix for types from sqlalchemy_utils. On Monday, January 5, 2015 6:11:35 PM UTC+1, Michael Bayer wrote: Ons mriba...@gmail.com

Re: [sqlalchemy] alembic problem autogenerating migration scripts with sqlalchemy-utils column types

2015-01-06 Thread Michael Bayer
Well, the logic currently does this to determine if the type is a SQLAlchemy type: elif mod.startswith(sqlalchemy): prefix = _sqlalchemy_autogenerate_prefix(autogen_context) return %s%r % (prefix, type_) else: prefix = _user_autogenerate_prefix(autogen_context,

[sqlalchemy] alembic problem autogenerating migration scripts with sqlalchemy-utils column types

2015-01-05 Thread Ons
Hello, I have a sqlalchemy model to which i want to add a column using alembic : from sqlalchemy_utils import UUIDType new_column = Column(UUIDType, primary_key=True) When i run alembic revision --autogenerate, it generates a migration script but when i run alembic upgrade head it throws the

Re: [sqlalchemy] alembic problem autogenerating migration scripts with sqlalchemy-utils column types

2015-01-05 Thread Michael Bayer
Ons mribah@gmail.com wrote: Hello, I have a sqlalchemy model to which i want to add a column using alembic : from sqlalchemy_utils import UUIDType new_column = Column(UUIDType, primary_key=True) When i run alembic revision --autogenerate, it generates a migration script but