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.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 more intricate, you’d need to look into also subclassing 
> SchemaType simultaneously, which is a little less end-user friendly, let me 
> know if you need that/need help with that.
>
>
>
> On Jan 29, 2014, at 10:28 AM, jason...@360pi.com <javascript:> wrote:
>
> 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.
>
> Cheers
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy-alembic" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy-alembic+unsubscr...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to