diff options
author | Jakob Odersky <jakob@driver.xyz> | 2017-09-22 15:32:35 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2017-09-22 15:35:03 -0700 |
commit | 676ddd423470e58dda711a9363027aad98b74a59 (patch) | |
tree | 64a2371e1af4c9d6c0335ac034bde3e1922ead0b /src/main/scala/xyz/driver/core/database | |
parent | 9b0bed19489dbbd59c52a77e9c0c080a880ca262 (diff) | |
download | driver-core-1.1.0.tar.gz driver-core-1.1.0.tar.bz2 driver-core-1.1.0.zip |
Upgrade sbt and slickv1.1.0
Diffstat (limited to 'src/main/scala/xyz/driver/core/database')
3 files changed, 7 insertions, 8 deletions
diff --git a/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala b/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala index 1331efc..e2efd32 100644 --- a/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala +++ b/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala @@ -1,11 +1,10 @@ package xyz.driver.core.database -import slick.driver.HsqldbDriver -import slick.jdbc.JdbcType +import slick.jdbc.{HsqldbProfile, JdbcType} import slick.ast.FieldSymbol -import slick.profile.RelationalProfile +import slick.relational.RelationalProfile -trait PatchedHsqldbProfile extends HsqldbDriver { +trait PatchedHsqldbProfile extends HsqldbProfile { override def defaultSqlTypeName(tmd: JdbcType[_], sym: Option[FieldSymbol]): String = tmd.sqlType match { case java.sql.Types.VARCHAR => val size = sym.flatMap(_.findColumnOption[RelationalProfile.ColumnOption.Length]) diff --git a/src/main/scala/xyz/driver/core/database/database.scala b/src/main/scala/xyz/driver/core/database/database.scala index 1dd0355..d305eee 100644 --- a/src/main/scala/xyz/driver/core/database/database.scala +++ b/src/main/scala/xyz/driver/core/database/database.scala @@ -1,7 +1,7 @@ package xyz.driver.core -import slick.backend.DatabaseConfig -import slick.driver.JdbcProfile +import slick.basic.DatabaseConfig +import slick.jdbc.JdbcProfile import xyz.driver.core.date.Date import xyz.driver.core.time.Time @@ -20,7 +20,7 @@ package database { val dbConfig: DatabaseConfig[JdbcProfile] = DatabaseConfig.forConfig(databaseName, config) new Database { - val profile: JdbcProfile = dbConfig.driver + val profile: JdbcProfile = dbConfig.profile val database: JdbcProfile#Backend#Database = dbConfig.db } } diff --git a/src/main/scala/xyz/driver/core/database/package.scala b/src/main/scala/xyz/driver/core/database/package.scala index b39169d..9385c8f 100644 --- a/src/main/scala/xyz/driver/core/database/package.scala +++ b/src/main/scala/xyz/driver/core/database/package.scala @@ -5,7 +5,7 @@ import java.util.Calendar import date.{Date, Month} import slick.dbio._ -import slick.driver.JdbcProfile +import slick.jdbc.JdbcProfile package object database { |