Flyway 8.x

Released: Oct 6, 2021

Aggiornamenti in Flyway 8.x

v8.5.13

Updated Jun 16, 2022

Fixes

  • The Ascii table will not be logged if there are no columns.
  • Fixed potential parsing bug during 'create package' statement in DB2.
  • Always close the underlying Java connection inside a Database object.

v8.5.12

Updated May 31, 2022

Features

  • The 'version' command now has JSON output.

Fixes

  • Fixed relative locations not being relative to the working directory.
  • When using the delimiter keyword the value can be placed on the next line without entering an infinite loop.
  • Update checker times out if it doesn't receive a response.
  • The filename placeholder no longer causes errors in repeatable SQL migrations.

v8.5.11

Updated May 16, 2022

Features

  • Optimized param tokenization.

Fixes

  • Updated GCS dependency due to vulnerability.
  • Updated AWS ASK, AWS_SECRETSMANAGER-JDBC, Maven Core and MSAL4J dependencies to fix vulnerabilities.

v8.5.10

Updated Apr 29, 2022

Fixes

  • Manually register the Oracle driver so Flyway CLI works with AWS Secrets Manager.
  • Fixed NPE in Oracle when 'echo' is set to 'on' during spool.
  • Updated recommended Spring JDBC version due to Spring vulnerability.

v8.5.9

Updated Apr 21, 2022

Fixes

  • PLSQL division on new line in package body is no longer classified as a delimiter.
  • Fixed bug where connection details set in placeholders were overriding the main details.
  • Handle errors (with warning) when cleaning procs on snowflake.

v8.5.8

Updated Apr 14, 2022

Fixes

  • Fixed error where the 'version' command fails to be handled.

v8.5.7

Updated Apr 7, 2022

Fixes

Updated S3 dependency to fix vulnerability.

v8.5.6

Updated Apr 6, 2022

Features

  • Added a failed state for Baseline Migrations.
  • Updated version of Jackson Databind due to GHSA-57j2-w4cx-62h2.
  • Added the ability to mask any parameter that ends with 'password' in the logs.
  • Added support for STRICT and LEGACY modes in H2.

Fixes

  • Ensure you close the connection created during the update stage.

v8.5.5

Updated Mar 28, 2022

Fixes

  • SQL*Plus 'spool' now ignores value of 'feedback' for update statements.
  • Upgraded jackson-databind to address an issue.

v8.5.4

Updated Mar 15, 2022

Features

  • Added 'placeholderSeparator' parameter to allow an alternative to ':' in default placeholders.

Fixes

  • Updated PostgreSQL driver to fix code injection vulnerability.

v8.5.3

Updated Mar 14, 2022

Features

  • Updated shipped MSSQL JDBC driver to 10.2.0, which defaults 'encrypt' to 'true'.

Fixes

  • Fixed issue where post schema clean didn't include correct schemas.
  • Clean mode now cleans more schemas for SQL Server integrated authentication logins.
  • Maven and Gradle plugins load configuration files from current directory by default.

v8.5.2

Updated Mar 4, 2022

Features

  • Added an info log saying number of SQL migrations skipped due to invalid naming, if any.

Fixes

  • Clean mode now cleans more schemas for SQL Server integrated authentication logins.

v8.5.1

Updated Feb 23, 2022

Features

  • Updated Jackson Databind to 2.12.6.

Fixes

  • Check if default 'jarDir' exists before using it.

v8.5.0

Updated Feb 14, 2022

Fixes

  • Fix exit code in Windows returning as 0 during error.
  • Fix possible NPE when no default schema is specified.
  • Ensure 'defaultSchema' is used over the first schema in 'schemas'.
  • Upgrade PostgreSQL driver to fix RCE vulnerability.
  • Remove displaying "user 'null'" when using Windows Authentication with SQL Server.

v8.4.4

Updated Feb 2, 2022

Fixes

  • Fixed rare NPE when checking for updates.
  • Printing version no longer exits early.

v8.4.3

Updated Jan 26, 2022

Features

  • Added the ability to add the path to the undo migration in the 'info' JSON output.
  • Added new callback which is triggered by migrations with newly applied scripts.
  • Removed H2 version to avoid vulnerability.
  • Removed Autotrial feature.

v8.4.2

Updated Jan 19, 2022

Fixes

  • Update Google dependencies to fix DoS vulnerability in protobuf.
  • Fixed bug in Vault integration where it thinks the user is running Community edition incorrectly.

v8.4.1

Updated Jan 11, 2022

Features

  • Added the ability to extract Firebird code to plugin. This will need to be added as a new dependency.
  • Updated Log4J suggested version to 2.17.1 to mitigate CVE-2021-44832.
  • Updated H2 to 2.0.206 due to GHSA-h376-j262-vhq6.

v8.4.0

Updated Jan 5, 2022

Features

  • Upgraded suggested version of Log4J to 2.17.

v8.3.0

Updated Dec 23, 2021

Features

  • Added the ability to disable placeholder replacement on a per-script basis.

Fixes

  • Fixed NPE when parsing single-line 'BEGIN' statements in SQL Server and detect 'BEGIN CONVERSATION' and 'BEGIN DIALOG'.

v8.2.3

Updated Dec 20, 2021

Features

  • Upgraded suggested version of Log4J to 2.16.

v8.2.2

Updated Dec 14, 2021

Features

  • Upgraded suggested version of Log4J to 2.15.
  • Upgraded H2 version to 2.0.202.
  • Removed unnecessary warning for MariaDB driver when connecting to a MySQL database on compatible database versions.

v8.2.1

Updated Dec 7, 2021

Features

  • Extract MySQL code to plugin. This will need to be added as a new dependency.

Fixes

  • Escape db name during doExists in MSSQL.

v8.2.0

Updated Nov 30, 2021

Features

  • Breaking Change - Removed MySQL Driver from inclusion in Flyway distribution due to License. MariaDB will be used as fallback driver if no MySQL driver is present on the Classpath.

Fixes

  • Stop Flyway dropping schemas it did not create.

v8.1.0

Updated Nov 25, 2021

Features

  • Added validation patterns to repair for missing migrations.
  • Added the ability to clean XML Schema Collections in Microsoft SQL Server.
  • Added the ability to extract SQLServer code to plugin. This will need to be added as a new dependency.
  • Added the ability to allow null values for installed on by using commit timestamp in GCP Cloud Spanner.
  • Updated GSON to 2.8.9.

Fixes

  • Grab DBMS_OUTPUT from Oracle when handling errors.

v8.0.5

Updated Nov 17, 2021

Features

  • Added 'beforeConnect' callback to Teams that executes before Flyway establishes a connection.
  • Added support for SQL*Plus variable concatenation.
  • Clean XML Schema Collections in Microsoft SQL Server.
  • Renamed 'FlywayExtension' in the API to 'PluginMetadata'.
  • Replaced SET SQLBLANKLINES warning with debug message.

Fixes

  • Fixed bug where notice level logs ignored the minimum log level configured.

8.0.4

Updated Nov 10, 2021

Features

  • Replaced 'ApiExtension' with 'ConfigurationExtension'. Instead of calling 'getExtensionConfiguration()' on a Configuration object, you must now call 'getConfigurationExtension()' on 'PluginRegister' which returns a 'ConfigurationExtension'
  • You can now add notice log pointing to Flyway Hub on completion of validate command.

Fixes

  • Add look ahead to parser to fix wrapped SQL statements.
  • Fixed bug with logs not appearing when using 'jarDirs'.

8.0.3

Updated Nov 1, 2021

Features

  • Added the ability to specify 'target=next' to apply just the next migration.
  • Added Kerberos authentication support for Microsoft SQL Server.
  • Added 'ignoreMigrationPatterns' setter that takes an array of 'ValidatePattern's.
  • Added support for MariaDB 10.6.
  • Added support for PostgreSQL 14.
  • Removed warning around schemas from CockroachDB.

Fixes

  • Fixed bug in parsing MySQL with multiple 'CASE' statements inside 'ORDER BY'.
  • Fixed bug in detecting emptiness in non-existent schemas.
  • Fixed bug in time function used when updating BigQuery lock.

8.0.2

Updated Oct 20, 2021

Fixes

  • The JSON output for 'flyway migrate' now contains additional information about successful migrations run up to the point of failure when a migration fails.

8.0.1

Updated Oct 13, 2021

Features

  • All Gradle tasks now return a result object.

Fixes

  • Fixed bug where encoding detection would fail if the file was empty.
  • Fixed bug in the availability of custom placeholders in script migrations.

8.0.0

Updated Oct 6, 2021

Fixes

  • Fixed issues in applying new migrations on top of baseline migrations.
  • Fixed parsing of multiline configuration parameters that contain a '='.
  • Fixed parsing of empty statements in SQL Server.