Skip to content

Commit

Permalink
Add debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Aug 14, 2023
1 parent 66abab9 commit d0aa4fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/me/kavin/piped/utils/LiquibaseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public static void init() throws Exception {
// 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)));
System.out.println("DB name: " + database.getShortName());

try (Liquibase liquibase = new Liquibase("changelog/db.changelog-master.xml", new ClassLoaderResourceAccessor(), database)) {

Expand Down

0 comments on commit d0aa4fe

Please sign in to comment.