mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Add the condition function by the primary key.
This commit is contained in:
@@ -5,6 +5,8 @@ import scala.slick.driver.H2Driver.simple._
|
||||
object Collaborators extends Table[Collaborator]("COLLABORATOR") with BasicTemplate {
|
||||
def collaboratorName = column[String]("COLLABORATOR_NAME")
|
||||
def * = userName ~ repositoryName ~ collaboratorName <> (Collaborator, Collaborator.unapply _)
|
||||
|
||||
def byPrimaryKey = byRepository _
|
||||
}
|
||||
|
||||
case class Collaborator(
|
||||
|
||||
Reference in New Issue
Block a user