mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 07:05:59 +00:00
Remove unused migration directory
This commit is contained in:
parent
b1a1a2b837
commit
74a6cf1dd1
@ -13,10 +13,10 @@ object FlywayMigrate {
|
|||||||
val locations = jdbc.dbmsName match {
|
val locations = jdbc.dbmsName match {
|
||||||
case Some(dbtype) =>
|
case Some(dbtype) =>
|
||||||
val name = if (dbtype == "h2") "postgresql" else 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 =>
|
case None =>
|
||||||
logger.warn(s"Cannot read database name from jdbc url: ${jdbc.url}. Go with H2")
|
logger.warn(s"Cannot read database name from jdbc url: ${jdbc.url}. Go with PostgreSQL")
|
||||||
List("classpath:db/migration/common", "classpath:db/h2")
|
List("classpath:db/postgresql")
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info(s"Using migration locations: $locations")
|
logger.info(s"Using migration locations: $locations")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user