From bad999b2f068bc593d2b76edf4f5508e797892e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Daniel=20Sim=C3=B5es?= Date: Fri, 28 Jun 2024 20:55:40 +0100 Subject: [PATCH] Update flyway.adoc Updated flyway documentation according to issue https://github.com/flyway/flyway/issues/3780 --- docs/src/main/asciidoc/flyway.adoc | 120 +++++++++++++++++++++++++++-- 1 file changed, 112 insertions(+), 8 deletions(-) diff --git a/docs/src/main/asciidoc/flyway.adoc b/docs/src/main/asciidoc/flyway.adoc index ecdee7ee18944..0aa4178ef3956 100644 --- a/docs/src/main/asciidoc/flyway.adoc +++ b/docs/src/main/asciidoc/flyway.adoc @@ -28,9 +28,7 @@ In your build file, add the following dependencies: * the Flyway extension * your JDBC driver extension (`quarkus-jdbc-postgresql`, `quarkus-jdbc-h2`, `quarkus-jdbc-mariadb`, ...) -* the MariaDB/MySQL support is now in a separate dependency, MariaDB/MySQL users need to add the `flyway-mysql` dependency from now on. -* the Microsoft SQL Server support is now in a separate dependency, Microsoft SQL Server users need to add the `flyway-sqlserver` dependency from now on. -* the Oracle support is now in a separate dependency, Oracle users need to add the `flyway-database-oracle` dependency from now on. +* unless you're using in-memory or file databases (such as H2 or SQLite), you need to add a flyway module dependency corresponding to the database you're using. (https://github.com/flyway/flyway/issues/3780[for more details]) [source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"] .pom.xml @@ -41,6 +39,12 @@ In your build file, add the following dependencies: quarkus-flyway + + + io.quarkus + quarkus-jdbc-postgresql + + org.flywaydb @@ -59,11 +63,84 @@ In your build file, add the following dependencies: flyway-database-oracle - + - io.quarkus - quarkus-jdbc-postgresql + org.flywaydb + flyway-database-postgresql + + + + + org.flywaydb + flyway-database-db2 + + + + + org.flywaydb + flyway-database-derby + + + + + org.flywaydb + flyway-database-hsqldb + + + + + org.flywaydb + flyway-database-informix + + + + + org.flywaydb + flyway-database-redshift + + + + + org.flywaydb + flyway-database-saphana + + + + + org.flywaydb + flyway-database-snowflake + + + + + org.flywaydb + flyway-database-sybasease + + + + + org.flywaydb + flyway-firebird + + + + + org.flywaydb + flyway-gcp-bigquery + + + + + org.flywaydb + flyway-gcp-spanner + + + + + org.flywaydb + flyway-singlestore + ---- [source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"] @@ -71,14 +148,41 @@ In your build file, add the following dependencies: ---- // Flyway specific dependencies implementation("io.quarkus:quarkus-flyway") +// JDBC driver dependencies +implementation("io.quarkus:quarkus-jdbc-postgresql") // Flyway SQL Server specific dependencies implementation("org.flywaydb:flyway-sqlserver") // Flyway MariaDB/MySQL specific dependencies implementation("org.flywaydb:flyway-mysql") // Flyway Oracle specific dependencies implementation("org.flywaydb:flyway-database-oracle") -// JDBC driver dependencies -implementation("io.quarkus:quarkus-jdbc-postgresql") +// Flyway Postgres specific dependencies +implementation("org.flywaydb:flyway-database-postgresql") +// Flyway DB2 specific dependencies +implementation("org.flywaydb:flyway-database-db2") +// Flyway Derby specific dependencies +implementation("org.flywaydb:flyway-database-derby") +// HSQLDB specific dependencies +implementation("org.flywaydb:flyway-database-hsqldb") +// Informix specific dependencies +implementation("org.flywaydb:flyway-database-informix") +// Redshift specific dependencies +implementation("org.flywaydb:flyway-database-redshift") +// Saphana specific dependencies +implementation("org.flywaydb:flyway-database-saphana") +// Snowflake specific dependencies +implementation("org.flywaydb:flyway-database-snowflake") +// Sybasease specific dependencies +implementation("org.flywaydb:flyway-database-sybasease") +// Firebird specific dependencies +implementation("org.flywaydb:flyway-firebird") +// BigQuery specific dependencies +implementation("org.flywaydb:flyway-gcp-bigquery") +// Spanner specific dependencies +implementation("org.flywaydb:flyway-gcp-spanner") +// Singlestore specific dependencies +implementation("org.flywaydb:flyway-singlestore:10.15.0") + ---- Flyway support relies on the Quarkus datasource config.