mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 22:15:51 +01:00
Bug fix.
This commit is contained in:
@@ -9,7 +9,7 @@ object Milestones extends Table[Milestone]("MILESTONE") with MilestoneTemplate w
|
||||
def closedDate = column[java.util.Date]("CLOSED_DATE")
|
||||
def * = userName ~ repositoryName ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _)
|
||||
|
||||
def autoInc = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.? returning milestoneId
|
||||
def ins = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.? returning milestoneId
|
||||
def byPrimaryKey = byMilestone _
|
||||
}
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ import Milestones._
|
||||
trait MilestonesService {
|
||||
|
||||
def createMilestone(owner: String, repository: String, title: String, description: Option[String],
|
||||
dueDate: Option[java.util.Date]) =
|
||||
Milestones.autoInc insert (owner, repository, title, description, dueDate, None)
|
||||
dueDate: Option[java.util.Date]): Unit =
|
||||
Milestones.ins insert (owner, repository, title, description, dueDate, None)
|
||||
|
||||
def updateMilestone(milestone: Milestone): Unit =
|
||||
Query(Milestones)
|
||||
|
||||
Reference in New Issue
Block a user