Revert "Drop unused ActivityComponent (#3024)" (#3117)

This reverts commit bd06e6d4dc.
This commit is contained in:
Naoki Takezoe
2022-08-28 03:33:19 +09:00
committed by GitHub
parent d4d2ca19a1
commit 119d7d0be0
2 changed files with 16 additions and 0 deletions

View File

@@ -1,5 +1,20 @@
package gitbucket.core.model
/**
* ActivityComponent has been deprecated, but keep it for binary compatibility.
*/
@deprecated("ActivityComponent has been deprecated, but keep it for binary compatibility.", "4.34.0")
trait ActivityComponent extends TemplateComponent { self: Profile =>
import profile.api._
import self._
lazy val Activities = TableQuery[Activities]
class Activities(tag: Tag) extends Table[Activity](tag, "ACTIVITY") with BasicTemplate {
def * = ???
}
}
case class Activity(
userName: String,
repositoryName: String,

View File

@@ -47,6 +47,7 @@ trait CoreProfile
with Profile
with AccessTokenComponent
with AccountComponent
with ActivityComponent
with CollaboratorComponent
with CommitCommentComponent
with CommitStatusComponent