mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +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 {
|
||||
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user