Added length to strings

This commit is contained in:
redfast00 2018-09-24 21:26:12 +02:00
parent f2ae768f76
commit 108cfc4bd1
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
2 changed files with 8 additions and 1 deletions

View file

@ -3,7 +3,7 @@ from .app import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String, unique=True, nullable=False)
username = db.Column(db.String(255), unique=True, nullable=False)
authorized = db.Column(db.Boolean, default=True)
admin = db.Column(db.Boolean, default=False)

View file

@ -1,6 +1,13 @@
certifi==2018.8.24
chardet==3.0.4
click==6.7
Flask==1.0.2
Flask-SQLAlchemy==2.3.2
idna==2.7
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
requests==2.19.1
SQLAlchemy==1.2.12
urllib3==1.23
Werkzeug==0.14.1