Move migrations to a separate directory to speed up classpath scanning

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent cd874f4b2c
commit 03cb7701c5
  1. 2
      archive/src/main/kotlin/org/openrs2/archive/DataSourceProvider.kt
  2. 0
      archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql

@ -15,7 +15,7 @@ public class DataSourceProvider : Provider<DataSource> {
Flyway.configure()
.dataSource(dataSource)
.locations("classpath:/org/openrs2/archive")
.locations("classpath:/org/openrs2/archive/migrations")
.load()
.migrate()

Loading…
Cancel
Save