start transition to multiple variants per submission

This commit is contained in:
Filip Graliński 2018-07-04 16:22:10 +02:00
parent 306d9d0af6
commit 52ae6ae9a5
2 changed files with 6 additions and 0 deletions

View File

@ -302,6 +302,7 @@ outForTest repoDir submissionId (Entity testId test) = do
checksum <- liftIO $ gatherSHA1ForCollectionOfFiles [outF]
return Out {
outSubmission=submissionId,
outVariant=Nothing,
outTest=testId,
outChecksum=SHA1 checksum }

View File

@ -59,6 +59,10 @@ Submission
isPublic Bool default=False
isHidden Bool Maybe
UniqueSubmissionRepoCommitChallenge repo commit challenge
Variant
submission SubmissionId
name Text
UniqueVariantSubmissionName submission name
Fork
source SubmissionId
target SubmissionId
@ -77,6 +81,7 @@ Comment
text Textarea
Out
submission SubmissionId
variant VariantId Maybe
test TestId
checksum SHA1
UniqueOutSubmissionTestChecksum submission test checksum