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:
@@ -10,6 +10,8 @@ object Repositories extends Table[Repository]("REPOSITORY") with BasicTemplate w
|
||||
def updatedDate = column[java.util.Date]("UPDATED_DATE")
|
||||
def lastActivityDate = column[java.util.Date]("LAST_ACTIVITY_DATE")
|
||||
def * = userName ~ repositoryName ~ isPrivate ~ description.? ~ defaultBranch ~ registeredDate ~ updatedDate ~ lastActivityDate <> (Repository, Repository.unapply _)
|
||||
|
||||
def byPrimaryKey = byRepository _
|
||||
}
|
||||
|
||||
case class Repository(
|
||||
|
||||
Reference in New Issue
Block a user