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)
date = db.Column(db.DateTime)
level = db.Column(db.Integer)
date = db.Column(db.DateTime, nullable=True)
level = db.Column(db.Integer, nullable=True)
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):
return '<AppTestResults %s>' % self.date