Fix nullable fields

This commit is contained in:
Alexandre Aubin 2018-02-26 14:46:51 +01:00
parent f633c608fd
commit a59ea92eb5

View file

@ -154,10 +154,10 @@ class AppCIResult(db.Model):
results = db.Column(db.PickleType) results = db.Column(db.PickleType)
date = db.Column(db.DateTime) date = db.Column(db.DateTime, nullable=True)
level = db.Column(db.Integer) level = db.Column(db.Integer, nullable=True)
url = db.Column(db.String(128), nullable=False) url = db.Column(db.String(128), nullable=False)
commit = db.Column(db.String(64), nullable=False) commit = db.Column(db.String(64), nullable=True)
def __repr__(self): def __repr__(self):
return '<AppTestResults %s>' % self.date return '<AppTestResults %s>' % self.date