From 74a6cf1dd17449194e623909e304a45111529628 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Thu, 19 Mar 2020 22:43:41 +0100 Subject: [PATCH] Remove unused migration directory --- .../main/scala/docspell/store/migrate/FlywayMigrate.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/store/src/main/scala/docspell/store/migrate/FlywayMigrate.scala b/modules/store/src/main/scala/docspell/store/migrate/FlywayMigrate.scala index 5fbcac31..0b56ebc2 100644 --- a/modules/store/src/main/scala/docspell/store/migrate/FlywayMigrate.scala +++ b/modules/store/src/main/scala/docspell/store/migrate/FlywayMigrate.scala @@ -13,10 +13,10 @@ object FlywayMigrate { val locations = jdbc.dbmsName match { case Some(dbtype) => val name = if (dbtype == "h2") "postgresql" else dbtype - List("classpath:db/migration/common", s"classpath:db/migration/${name}") + List(s"classpath:db/migration/${name}") case None => - logger.warn(s"Cannot read database name from jdbc url: ${jdbc.url}. Go with H2") - List("classpath:db/migration/common", "classpath:db/h2") + logger.warn(s"Cannot read database name from jdbc url: ${jdbc.url}. Go with PostgreSQL") + List("classpath:db/postgresql") } logger.info(s"Using migration locations: $locations")