We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ba51e commit 4e2b591Copy full SHA for 4e2b591
database/src/main/java/org/togetherjava/tjbot/db/Database.java
@@ -46,10 +46,8 @@ public Database(String jdbcUrl) throws SQLException {
46
SQLiteDataSource dataSource = new SQLiteDataSource(sqliteConfig);
47
dataSource.setUrl(jdbcUrl);
48
49
- Flyway flyway = Flyway.configure()
50
- .dataSource(dataSource)
51
- .locations("/org/togetherjava/tjbot/db")
52
- .load();
+ Flyway flyway =
+ Flyway.configure().dataSource(dataSource).locations("classpath:/db/").load();
53
flyway.migrate();
54
55
dslContext = DSL.using(dataSource.getConnection(), SQLDialect.SQLITE);
0 commit comments