Skip to content

Commit 4e2b591

Browse files
I-Al-IstannenZabuzard
authored andcommitted
Fix Database flyway migration path
1 parent a8ba51e commit 4e2b591

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

database/src/main/java/org/togetherjava/tjbot/db/Database.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ public Database(String jdbcUrl) throws SQLException {
4646
SQLiteDataSource dataSource = new SQLiteDataSource(sqliteConfig);
4747
dataSource.setUrl(jdbcUrl);
4848

49-
Flyway flyway = Flyway.configure()
50-
.dataSource(dataSource)
51-
.locations("/org/togetherjava/tjbot/db")
52-
.load();
49+
Flyway flyway =
50+
Flyway.configure().dataSource(dataSource).locations("classpath:/db/").load();
5351
flyway.migrate();
5452

5553
dslContext = DSL.using(dataSource.getConnection(), SQLDialect.SQLITE);

0 commit comments

Comments
 (0)