Created
January 21, 2016 08:16
-
-
Save androidzhibinw/50deedaad950750ea573 to your computer and use it in GitHub Desktop.
sqlalchemy time created update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
created_on = db.Column(db.DateTime, server_default=db.func.now()) | |
updated_on = db.Column(db.DateTime, server_default=db.func.now(), onupdate=db.func.now()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment