Code below creates enum type, but server_default still doesn't work as I expect ))
import_action = ENUM('copy', 'insert', 'update', name='import_action') class Import(Base): __tablename__ = 'import' id = Column(Integer, primary_key=True) name = Column(UnicodeText, nullable=False) actions = Column(ARRAY(import_action), server_default=array(['copy'], type_=import_action), nullable=False) @event.listens_for(Import.__table__, 'before_create') def receive_before_create(target, connection, **kwargs): import_action.create(connection) -- 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.