Versions are obligatory for challanges and submission

DB-SCEHEME-BREAKING CHANGE
This commit is contained in:
Filip Gralinski 2019-08-27 23:39:24 +02:00
parent 628f8aedc2
commit 40a06a8bee
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ addChallenge name publicRepoId privateRepoId chan = do
challengeImage=mImage,
challengeStarred=False,
challengeArchived=Just False,
challengeVersion=Just commit}
challengeVersion=commit}
updateTests challengeId chan

View File

@ -40,7 +40,7 @@ Challenge
image ByteString Maybe
starred Bool
archived Bool Maybe
version SHA1 Maybe
version SHA1
-- challenge version
Version
commit SHA1
@ -70,7 +70,7 @@ Submission
isPublic Bool default=False
isHidden Bool default=False
-- challenge version present when the submission was done
version SHA1 Maybe
version SHA1
UniqueSubmissionRepoCommitChallenge repo commit challenge
Variant
submission SubmissionId