I have a column in an alembic revision for update_time to show when the Column is updated.
Currently I have tried:
sa.Column('update_time', sa.dialects.mysql.DATETIME(fsp=3), nullable=False, server_default=str(datetime.utcnow()), onupdate=str(datetime.utcnow()), server_onupdate=str(datetime.utcnow()))
I have also tried:
sa.Column('test_time', sa.DateTime(), server_default=sa.func.now(), server_onupdate=sa.func.now(), onupdate=sa.func.now())
When the database is built is gets the utcnow() time fine as a DateTime.
However, when I update the column via the command line in mysql, the Column stays the same timestamp.
How do I get the timestamp to update?