Skip to content

Commit

Permalink
Merge d52b21c into 266c3f3
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaHenderson committed Mar 16, 2021
2 parents 266c3f3 + d52b21c commit 915b4e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conbench/entities/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ class Data(Base, EntityMixin):
summary_id = NotNull(s.String(50), s.ForeignKey("summary.id", ondelete="CASCADE"))
iteration = NotNull(s.Integer, check("iteration>=1"))
result = NotNull(s.Numeric, check("result>=0"))


s.Index("data_summary_id_index", Data.summary_id)
3 changes: 3 additions & 0 deletions conbench/entities/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ class Time(Base, EntityMixin):
summary_id = NotNull(s.String(50), s.ForeignKey("summary.id", ondelete="CASCADE"))
iteration = NotNull(s.Integer, check("iteration>=1"))
result = NotNull(s.Numeric, check("result>=0"))


s.Index("time_summary_id_index", Time.summary_id)

0 comments on commit 915b4e5

Please sign in to comment.