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

[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

Error when autogenerate migration scripts with alembic

2014-11-17 Thread Ons
Hi, I want to use alembic to auto-generate migrations scripts for my postgres db. When i tried: #alembic upgrade and alembic downgrade both worked properly, but when i modified my models and tried #alembic revision --autogenerate it raises this error : INFO [alembic.migration] Context impl

[sqlalchemy] Foreign key references a subset of rows in the referenced table

2014-11-16 Thread Ons
Hi, I have created two tables with one to many relationship. Let's say parent and child. i placed a foreign key in the child table referencing the parent. I would like to add a new column ( Foreign key) in parent table which references a subset of rows in child table depending on a child's