mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Register YugabyteDB extension.
This commit is contained in:
parent
66abab9389
commit
28a1a481c7
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ public class LiquibaseHelper {
|
|||
// ensure postgres driver is loaded
|
||||
DriverManager.registerDriver(new org.postgresql.Driver());
|
||||
|
||||
// register YugabyteDB database
|
||||
DatabaseFactory.getInstance().register(new liquibase.ext.yugabytedb.database.YugabyteDBDatabase());
|
||||
|
||||
Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(DriverManager.getConnection(url, username, password)));
|
||||
|
||||
try (Liquibase liquibase = new Liquibase("changelog/db.changelog-master.xml", new ClassLoaderResourceAccessor(), database)) {
|
||||
|
|
Loading…
Reference in a new issue