File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class ResetToken(db.Model):
2323 __tablename__ = "token"
2424 id = Column (Integer , primary_key = True )
2525 username = Column (String (64 ), nullable = False )
26- created = Column (DateTime , default = func .timezone ("UTC" , func .current_timestamp ))
26+ created = Column (DateTime , default = func .timezone ("UTC" , func .now () ))
2727 token = Column (String (36 ))
2828 session = Column (String (36 ), ForeignKey ("session.id" ))
2929 used = Column (Boolean )
@@ -39,7 +39,7 @@ class RecoverySession(db.Model):
3939 __tablename__ = "session"
4040 id = Column (String (36 ), primary_key = True )
4141 username = Column (String (64 ), nullable = False )
42- created = Column (DateTime , default = func .timezone ("UTC" , func .current_timestamp ))
42+ created = Column (DateTime , server_default = func .timezone ("UTC" , func .now () ))
4343
4444
4545class PhoneVerification (db .Model ):
You can’t perform that action at this time.
0 commit comments