Relocate MySQL connector and fix migrations

This commit is contained in:
Gabriele C
2021-11-28 16:47:47 +01:00
parent 0a418e886a
commit 31564d8284
5 changed files with 17 additions and 12 deletions
@@ -104,8 +104,8 @@ public class MySQL extends AbstractSqlDataSource {
try {
Class.forName(this.className);
} catch (ClassNotFoundException e) {
logger.info("Driver class '" + this.className + "' not found! Falling back to legacy MySQL driver (com.mysql.jdbc.Driver)");
this.className = "com.mysql.jdbc.Driver";
this.className = DatabaseSettings.MYSQL_DRIVER_CLASS_NAME.getDefaultValue();
logger.info("Driver class '" + this.className + "' not found! Falling back to the built-in MySQL driver (" + this.className + ")");
}
this.database = settings.getProperty(DatabaseSettings.MYSQL_DATABASE);
this.tableName = settings.getProperty(DatabaseSettings.MYSQL_TABLE);