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.cl...@360pi.com 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.
> For more options, visit https://groups.google.com/groups/opt_out.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to