>
> 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")
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.