Not sure if this matters, but the model doesn't have an autoincrement
primary key:
class ExchangeRate(Base):
currency_from = Column(CURRENCY_ISO_CODE_TYPE, primary_key=True)
currency_to = Column(CURRENCY_ISO_CODE_TYPE, primary_key=True)
...
created_at = Column(DateTime, nullable=False, server_default=func.now())
updated_at = Column(DateTime, nullable=False, server_default=func.now(),
server_onupdate=func.now())
--
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/groups/opt_out.