1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

duration_in_days > 0

This commit is contained in:
Mo 2022-02-24 02:08:09 +01:00
parent 3637fa7f7b
commit 4e6c2ad708
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -237,7 +237,7 @@ class Experiment(db.Model):
building = db.Column(db.String(100), nullable=False)
room = db.Column(db.String(100), nullable=False)
responsibility = db.Column(db.String(200), nullable=True)
duration_in_days = db.Column(db.Integer, db.CheckConstraint("duration_in_days > -1"), nullable=False)
duration_in_days = db.Column(db.Integer, db.CheckConstraint("duration_in_days > 0"), nullable=False)
active = db.Column(db.Boolean, default=True, nullable=False)
oral_weighting = db.Column(