On May 1, 2014, at 1:09 PM, Vlad Wing <vlad.w...@gmail.com> wrote: > use the PG ENUM type instead and add create_type=False: > > from sqlalchemy.dialects.postgresql import ENUM > > ENUM('male', 'female', name='gt', create_type=False) > > This method didn't work for me. The safest way I could find is to manually > edit the autogenerated script, removing the reference to the column, and then > adding the column manually later using op.execute. > > For example: > op.execute("ALTER TABLE ModelB ADD gender gender_type")
OK the pg.ENUM type obviously needs a lot more attention in the future, though just curious what was "didn't work" in this case, "create_type" was ignored and it tried to CREATE TYPE anyway ? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.