Re: Alembic + custom postgresql types

2014-01-29 Thread jason . clark
Suggestion worked great, I defined a custom type for Upc and it works perfect. Thanks much for the advice. On Wednesday, January 29, 2014 1:22:43 PM UTC-5, Michael Bayer wrote: > > for types where you need to fully specify DDL from the ground up you use > UserDefinedType: > > > http://docs.sqla

Re: Alembic + custom postgresql types

2014-01-29 Thread Michael Bayer
for types where you need to fully specify DDL from the ground up you use UserDefinedType: http://docs.sqlalchemy.org/en/rel_0_9/core/types.html?highlight=userdefinedtype#sqlalchemy.types.UserDefinedType if this type is more in the realm of having to emit PG’s “CREATE TYPE” and all that, that’s

Alembic + custom postgresql types

2014-01-29 Thread jason . clark
Does anyone know how you can get Alembic and Sqlalchemy to deal with custom types i.e UPC out of the postgres ISN module? I've dealt with this on a model level, i.e custom type decorator. However, I'd like to have Alembic generate the proper schema for the table which has the UPC type in it.