add hsqldb driver in liquibase helper

This commit is contained in:
Andrea Spacca 2023-10-07 14:27:20 +09:00
parent 6bd9c61791
commit 0bbe5506a7

View File

@ -28,6 +28,8 @@ public class LiquibaseHelper {
// register YugabyteDB database // register YugabyteDB database
DatabaseFactory.getInstance().register(new liquibase.ext.yugabytedb.database.YugabyteDBDatabase()); DatabaseFactory.getInstance().register(new liquibase.ext.yugabytedb.database.YugabyteDBDatabase());
// register HsqlDatabase database
DatabaseFactory.getInstance().register(new liquibase.database.core.HsqlDatabase());
Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(DriverManager.getConnection(url, username, password))); Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(DriverManager.getConnection(url, username, password)));