Resurrect ActivityComponent for binary compatibility in 4.35.1 (#2612)

This commit is contained in:
Naoki Takezoe
2020-12-29 00:26:58 +09:00
committed by GitHub
parent 736fdafea4
commit c63e20ce7d
2 changed files with 13 additions and 12 deletions

View File

@@ -1,19 +1,19 @@
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._
/**
* 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]
lazy val Activities = TableQuery[Activities]
// class Activities(tag: Tag) extends Table[Activity](tag, "ACTIVITY") with BasicTemplate {
// def * = ???
// }
// }
class Activities(tag: Tag) extends Table[Activity](tag, "ACTIVITY") with BasicTemplate {
def * = ???
}
}
case class Activity(
userName: String,

View File

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