mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-11-03 20:15:59 +01:00 
			
		
		
		
	(refs #4)The base of activity timeline is completed.
This commit is contained in:
		@@ -13,6 +13,12 @@ object Activities extends Table[Activity]("ACTIVITY") with BasicTemplate with Fu
 | 
			
		||||
  def autoInc = userName ~ repositoryName ~ activityUserName ~ activityType ~ message ~ additionalInfo.? ~ activityDate returning activityId
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
object CommitLog extends Table[(String, String, String)]("COMMIT_LOG") with BasicTemplate {
 | 
			
		||||
  def commitId = column[String]("COMMIT_ID")
 | 
			
		||||
  def * = userName ~ repositoryName ~ commitId
 | 
			
		||||
  def byPrimaryKey(userName: String, repositoryName: String, commitId: String) = byRepository(userName, repositoryName) && (this.commitId is commitId.bind)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
case class Activity(
 | 
			
		||||
  activityId: Int,
 | 
			
		||||
  userName: String,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user