documentation/Reference/Database Driver Reference/YugabyteDB.md
{% include database-boilerplate.html %}
The preferred driver for this plugin is YugabyteDB JDBC driver.
| Item | Details |
|---|---|
| URL format | <code>jdbc:yugabytedb://<i>host</i>:<i>port</i>/<i>database</i></code> |
| SSL support | Yes - add ?ssl=true |
| Ships with Flyway Command-line | No |
| Maven Central coordinates | com.yugabyte:jdbc-yugabytedb |
| Supported versions | 42.3.5-yb-1 and later |
| Default Java class | com.yugabyte.Driver |
| Flyway Community implementation | flyway-community-db-support |
Alternatively, one can also use the PostgreSQL JDBC Driver with this plugin.
| Item | Details |
|---|---|
| URL format | <code>jdbc:postgresql://<i>host</i>:<i>port</i>/<i>database</i></code> |
| SSL support | Yes - add ?ssl=true |
| Ships with Flyway Command-line | Yes |
| Maven Central coordinates | org.postgresql:postgresql |
| Supported versions | 9.3-1104-jdbc4 and later |
| Default Java class | org.postgresql.Driver |
YugabyteDB support is a separate dependency for Flyway and will need to be added to your Java project to access these features.
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-yugabytedb</artifactId>
</dependency>
buildscript {
dependencies {
implmentation "org.flywaydb:flyway-database-yugabytedb"
}
}
YugabyteDB is a variant of PostgreSQL and Flyway usage is the same for the two databases. For more details, please refer to the PostgreSQL page.