First ticket number should be 1, not 0

This commit is contained in:
fr33domlover 2016-05-01 11:05:56 +00:00
parent bc17dc78dd
commit 349d089019
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ Project
sharer SharerId sharer SharerId
name Text Maybe name Text Maybe
desc Text Maybe desc Text Maybe
nextTicket Int default='0' nextTicket Int default='1'
UniqueProject ident sharer UniqueProject ident sharer

View file

@ -28,7 +28,7 @@ newProjectAForm sid = Project
<*> pure sid <*> pure sid
<*> aopt textField "Name" Nothing <*> aopt textField "Name" Nothing
<*> aopt textField "Description" Nothing <*> aopt textField "Description" Nothing
<*> pure 0 <*> pure 1
newProjectForm :: SharerId -> Form Project newProjectForm :: SharerId -> Form Project
newProjectForm = renderDivs . newProjectAForm newProjectForm = renderDivs . newProjectAForm