I am trying to follow this example to have an enum column in a table that uses Python\'s Enum type. I define the enum then pass it to the column as shown in th
Enum
The column type should be sqlalchemy.types.Enum. You're using the Python Enum type again, which is valid for the value but not the column type.
class MyTable(db.Model): id = db.Column(db.Integer, primary_key = True) fruit_type = db.Column(db.Enum(FruitType))