Skip to content

Commit

Permalink
Fix Liquibase driver issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed May 26, 2018
1 parent e8ad88f commit f5af779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.45</version> <!-- Version 6 required Java 8 + issue in 46 -->
<version>5.1.46</version> <!-- Version 6 required Java 8 -->
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
Expand Down
3 changes: 2 additions & 1 deletion src/org/traccar/database/DataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ private void initDatabaseSchema() throws SQLException, LiquibaseException {
config.getString("database.url"),
config.getString("database.user"),
config.getString("database.password"),
null, resourceAccessor);
config.getString("database.driver"),
null, null, null, resourceAccessor);

Liquibase liquibase = new Liquibase(
config.getString("database.changelog"), resourceAccessor, database);
Expand Down

0 comments on commit f5af779

Please sign in to comment.