Skip to content

Is there a way to add updated_at column in piccolo ? #277

Discussion options

You must be logged in to vote

Give auto_update a try - it should do what you need:

import datetime

class MyTable(Table):
    updated_date = Timestamp(auto_update=datetime.datetime.now)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sumitsharansatsangi
Comment options

@sumitsharansatsangi
Comment options

Answer selected by sumitsharansatsangi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants