Play 2.6 indicates to use a deprecated Slick class

71 views Asked by At

According to Play 2.6 documentation, Play-Slick should be used as follows:

import slick.driver.JdbcProfile

class Application @Inject() (
  protected val dbConfigProvider: DatabaseConfigProvider,
  cc: ControllerComponents
)(implicit ec: ExecutionContext)
    extends AbstractController(cc) with HasDatabaseConfigProvider[JdbcProfile] { 

Problem is that JdbcProfile is deprecated in Slick 3.2.x, any ideas how to deal with this? Note that I'm migrating from Play 2.5 to 2.6.

1

There are 1 answers

0
Jamie On BEST ANSWER

There is a non-deprecated JdbcProfile in the slick.jdbc package:

http://slick.lightbend.com/doc/3.2.3/api/index.html#slick.jdbc.JdbcProfile