Skip to content

Commit 55cd88d

Browse files
Steve SalasLenny Halseth
authored andcommitted
Version 1.4.196 of com.h2database creates database files with a .mv.db file extension (prior version used .h2.db file extension).
1 parent 908f889 commit 55cd88d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codepulse/src/main/scala/com/secdec/codepulse/data/model/slick/SlickH2ProjectDataProvider.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ class SlickH2ProjectDataProvider(folder: File, actorSystem: ActorSystem) extends
4242
private val cache = collection.mutable.Map.empty[ProjectId, SlickProjectData]
4343

4444
private object ProjectFilename {
45-
def apply(projectId: ProjectId) = s"${getDbName(projectId)}.h2.db"
45+
def apply(projectId: ProjectId) = s"${getDbName(projectId)}.mv.db"
4646
def getDbName(projectId: ProjectId) = s"project-${projectId.num}"
4747

48-
val NameRegex = raw"project-(\d+)\.h2\.db".r
48+
val NameRegex = raw"project-(\d+)\.mv\.db".r
4949

5050
def unapply(filename: String): Option[ProjectId] = filename match {
5151
case NameRegex(ProjectId(id)) => Some(id)
@@ -54,7 +54,7 @@ class SlickH2ProjectDataProvider(folder: File, actorSystem: ActorSystem) extends
5454
}
5555

5656
private val masterData = {
57-
val needsInit = !(folder / "master.h2.db").exists
57+
val needsInit = !(folder / "master.mv.db").exists
5858

5959
val db = Database.forURL(s"jdbc:h2:file:${(folder / "master").getCanonicalPath};DB_CLOSE_DELAY=10", driver = "org.h2.Driver")
6060
val data = new SlickMasterData(db, H2Driver)

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ object Dependencies {
5353

5454
// database related
5555
lazy val slick = "com.typesafe.slick" %% "slick" % "2.0.1"
56-
lazy val h2 = "com.h2database" % "h2" % "1.3.172"
56+
lazy val h2 = "com.h2database" % "h2" % "1.4.196"
5757

5858
// apache commons dependencies
5959
object commons {

0 commit comments

Comments
 (0)