mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
Fix byPrimaryKey problem.
This commit is contained in:
@@ -8,7 +8,8 @@ object Labels extends Table[Label]("LABEL") with LabelTemplate {
|
|||||||
def * = userName ~ repositoryName ~ labelId ~ labelName ~ color <> (Label, Label.unapply _)
|
def * = userName ~ repositoryName ~ labelId ~ labelName ~ color <> (Label, Label.unapply _)
|
||||||
|
|
||||||
def ins = userName ~ repositoryName ~ labelName ~ color
|
def ins = userName ~ repositoryName ~ labelName ~ color
|
||||||
def byPrimaryKey = byLabel _
|
def byPrimaryKey(owner: String, repository: String, labelId: Int) = byLabel(owner, repository, labelId)
|
||||||
|
def byPrimaryKey(userName: Column[String], repositoryName: Column[String], labelId: Column[Int]) = byLabel(userName, repositoryName, labelId)
|
||||||
}
|
}
|
||||||
|
|
||||||
case class Label(
|
case class Label(
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ object Milestones extends Table[Milestone]("MILESTONE") with MilestoneTemplate w
|
|||||||
def * = userName ~ repositoryName ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _)
|
def * = userName ~ repositoryName ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _)
|
||||||
|
|
||||||
def ins = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.?
|
def ins = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.?
|
||||||
def byPrimaryKey = byMilestone _
|
def byPrimaryKey(owner: String, repository: String, milestoneId: Int) = byMilestone(owner, repository, milestoneId)
|
||||||
|
def byPrimaryKey(userName: Column[String], repositoryName: Column[String], milestoneId: Column[Int]) = byMilestone(userName, repositoryName, milestoneId)
|
||||||
}
|
}
|
||||||
|
|
||||||
case class Milestone(
|
case class Milestone(
|
||||||
|
|||||||
Reference in New Issue
Block a user