Update deprecated database field

master
Tobiasz Kędzierski 5 years ago committed by James Curtin
parent b600f8a625
commit 3ec751a2a0
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/models.py

@ -39,7 +39,7 @@ class User(UserMixin, SurrogatePK, Model):
username = Column(db.String(80), unique=True, nullable=False)
email = Column(db.String(80), unique=True, nullable=False)
#: The hashed password
password = Column(db.Binary(128), nullable=True)
password = Column(db.LargeBinary(128), nullable=True)
created_at = Column(db.DateTime, nullable=False, default=dt.datetime.utcnow)
first_name = Column(db.String(30), nullable=True)
last_name = Column(db.String(30), nullable=True)

Loading…
Cancel
Save