Skip to content

Commit

Permalink
Bump version to flyway-10.9.1
Browse files Browse the repository at this point in the history
Please see the GH release for the release notes

Update Flyway-Community-DB-Support version to 10.8.1

Create OperationResultPublisher interface to allow the creation of publisher plugins for Flyway

remove duplicate dependencies
  • Loading branch information
rg-buildmonkey committed Mar 7, 2024
1 parent d38d8c3 commit b682387
Show file tree
Hide file tree
Showing 30 changed files with 127 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
subtitle: Cassandra
---
# Cassandra Database - Preview
{% include redgate.html %}

- **Verified Versions:** N/A
- **Maintainer:** Redgate


## Supported Versions and Support Levels

{% include database-boilerplate.html %}

## Driver

| Item | Details |
|-------------------------------------------|---------------------------------------------------------------------------------------------|
| **URL format** | <code>jdbc:cassandra://<i>host</i>:<i>port</i>?localdatacenter=<i>datacenter1</i></code> |
| **SSL support** | Yes, add `;enablessl=true` to URL |
| **Ships with Flyway Command-line** | Yes |
| **Maven Central coordinates** | `com.ing.data:cassandra-jdbc-wrapper` |
| **Supported versions** | `4.11.1` and later |
| **Default Java class** | `com.ing.data.cassandra.jdbc.CassandraDriver` |

## Good to know
### CQL file extensions
Cassandra migrations typically have a `.cql` migration suffix, we recommend configuring flyway to pick these up using the [`sqlMigrationSuffixes`](/configuration/parameters/flyway/sql-migration-suffixes) parameter.

You would specify this in your TOML configuration like this:
```
[flyway]
sqlMigrationSuffixes = [".cql"]
```
### Default schema/keyspace

Flyway maps it's concept of schema onto a keyspace in Cassandra. You should specify a default schema to use as otherwise Flyway will default to `system` and you will have troubles working there (for example, clean won't be able to work correctly in the `system` keyspace).
This can be configured using one of the following parameters:
- [`defaultSchema`](/configuration/parameters/flyway/default-schema)
- [`schemas`](/configuration/parameters/environments/schemas)

## Limitations

- You can't currently do a [Dry-run](<Concepts/Dry Runs>) on operations with Cassandra.

### Additional information
Our JDBC implementation for Cassandra comes from this Github project:
[Cassandra-jdbc-wrapper](https://github.com/ing-bank/cassandra-jdbc-wrapper)
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
</div>
<div class="col-md-9">

<div class="release">
<h2 id="10.9.1">Flyway 10.9.1 (2024-03-07)</h2>

<h3>Bug fixes</h3>
<ul>
<li>Fix issue with MySQL not falling back to MariaDB driver when official driver is unavailable</li>
<li>Fix duplicate migration pattern error when running 'check -drift' or 'check -changes' on a database with multiple schema creation rows.</li>
</ul>

</div>

<div class="release">
<h2 id="10.9.0">Flyway 10.9.0 (2024-03-05)</h2>

Expand All @@ -40,7 +51,7 @@ <h3>Changes</h3>

<h3>Database compatibility</h3>
<ul>
<li>Reintroduce Oceanblue</li>
<li>Reintroduce OceanBase</li>
</ul>

<h3>Java compatibility</h3>
Expand Down
2 changes: 1 addition & 1 deletion documentation/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

flywayVersion: 10.9.0
flywayVersion: 10.9.1
enterpriseUrl: https://download.red-gate.com/maven/release/com/redgate/flyway
kramdown:
smart_quotes: ["apos", "apos", "quot", "quot"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Clickhouse
[Ii]nformix
keyspace
(?i)MariaDB
Percona
(?i)Postgres
Expand Down
32 changes: 6 additions & 26 deletions flyway-commandline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
</parent>
<artifactId>flyway-commandline</artifactId>
<packaging>jar</packaging>
Expand Down Expand Up @@ -138,31 +138,31 @@
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-ignite</artifactId>
<version>10.8.0</version>
<version>10.8.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-tidb</artifactId>
<version>10.8.0</version>
<version>10.8.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-yugabytedb</artifactId>
<version>10.8.0</version>
<version>10.8.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-clickhouse</artifactId>
<version>10.8.0</version>
<version>10.8.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-oceanbase</artifactId>
<version>10.8.0</version>
<version>10.8.1</version>
<scope>runtime</scope>
</dependency>

Expand Down Expand Up @@ -283,26 +283,6 @@


























Expand Down
3 changes: 3 additions & 0 deletions flyway-commandline/src/main/assembly/component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@
<exclude>com.google.code.gson:gson</exclude>
<exclude>software.amazon.awssdk:s3</exclude>
<exclude>org.slf4j:slf4j-nop</exclude>
<exclude>org.apache.commons:commons-text</exclude>
<exclude>com.fasterxml.jackson.dataformat:jackson-dataformat-xml</exclude>
<exclude>com.microsoft.azure:msal4j</exclude>
</excludes>
</dependencySet>
</dependencySets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.flywaydb.core.internal.logging.EvolvingLog;
import org.flywaydb.core.internal.logging.buffered.BufferedLog;
import org.flywaydb.core.internal.plugin.PluginRegister;
import org.flywaydb.core.internal.publishing.OperationResultPublisher;
import org.flywaydb.core.internal.reports.ReportDetails;
import org.flywaydb.core.internal.util.CommandExtensionUtils;
import org.flywaydb.core.internal.util.FlywayDbWebsiteLinks;
Expand Down Expand Up @@ -293,9 +294,18 @@ private static OperationResult executeOperation(Flyway flyway, String operation,
result = CommandExtensionUtils.runCommandExtension(configuration, operation, commandLineArguments.getFlags(), telemetryManager);
}

publishOperationResult(configuration, result);

return result;
}

private static void publishOperationResult(Configuration configuration, OperationResult result) {
List<OperationResultPublisher> publishers = configuration.getPluginRegister().getPlugins(OperationResultPublisher.class);
for (OperationResultPublisher publisher : publishers) {
publisher.publish(configuration, result);
}
}

private static MigrationFilterImpl getInfoFilter(CommandLineArguments commandLineArguments) {
return new MigrationFilterImpl(
commandLineArguments.getInfoSinceDate(),
Expand Down
2 changes: 1 addition & 1 deletion flyway-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
</parent>
<artifactId>flyway-core</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (C) Red Gate Software Ltd 2010-2024
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.flywaydb.core.internal.publishing;

import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.api.output.OperationResult;
import org.flywaydb.core.extensibility.Plugin;

public interface OperationResultPublisher extends Plugin {
void publish(Configuration configuration, OperationResult operationResult);
}
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-db2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-derby/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-hsqldb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-informix/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-oracle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-postgresql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-redshift/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<relativePath>../../pom.xml</relativePath>
<version>10.9.0</version>
<version>10.9.1</version>
</parent>

<artifactId>flyway-database-redshift</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-saphana/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-snowflake/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-database-sybasease/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-firebird/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>flyway-parent</artifactId>
<groupId>org.flywaydb</groupId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-gcp-bigquery/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-gcp-spanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>flyway-parent</artifactId>
<groupId>org.flywaydb</groupId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-singlestore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/flyway-sqlserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion flyway-database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.9.0</version>
<version>10.9.1</version>
</parent>

<artifactId>flyway-database</artifactId>
Expand Down

0 comments on commit b682387

Please sign in to comment.