mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 14:35:52 +01:00
Fix incremental compilation problem caused by Slick.
This is temporary fix to decrease compilation time in development. Therefore this fix will be reverted in the future to add multiple database support capability.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
package model
|
||||
|
||||
import slick.driver.JdbcProfile
|
||||
|
||||
trait Profile {
|
||||
val profile: JdbcProfile
|
||||
val profile = slick.driver.H2Driver
|
||||
import profile.simple._
|
||||
|
||||
// java.util.Date Mapped Column Types
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
package object model extends {
|
||||
// TODO [Slick 2.0]Should be configurable?
|
||||
val profile = slick.driver.H2Driver
|
||||
// TODO [Slick 2.0]To avoid compilation error about delete invocation. Why can't this error be resolved by import profile.simple._?
|
||||
val simple = profile.simple
|
||||
|
||||
} with AccountComponent
|
||||
package object model extends Profile
|
||||
with AccountComponent
|
||||
with ActivityComponent
|
||||
with CollaboratorComponent
|
||||
with GroupMemberComponent
|
||||
@@ -16,9 +11,11 @@ package object model extends {
|
||||
with PullRequestComponent
|
||||
with RepositoryComponent
|
||||
with SshKeyComponent
|
||||
with WebHookComponent with Profile {
|
||||
with WebHookComponent {
|
||||
|
||||
/**
|
||||
* Returns system date.
|
||||
*/
|
||||
def currentDate = new java.util.Date()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user