The following line gives an error:
|
created_at = Column(DateTime, default=datetime.utcnow, nullable=False) |
When this was originally written, was there a reason to pass a python function instead of sqlalchemy func, like the following?
from sqlalchemy.sql import func
...
created_at = Column(DateTime, default=func.now(), nullable=False)
(or even using server_default instead, but that requires a schema change to implement now)
The following line gives an error:
flask-dance/flask_dance/consumer/storage/sqla.py
Line 41 in 70f79fd
When this was originally written, was there a reason to pass a python function instead of sqlalchemy func, like the following?
(or even using
server_defaultinstead, but that requires a schema change to implement now)