-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
d38d8c3
commit b682387
Showing
30 changed files
with
127 additions
and
50 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
documentation/Flyway CLI and API/Supported Databases/Cassandra Database.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
documentation/_vale_config/styles/config/vocabularies/db/accept.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Clickhouse | ||
[Ii]nformix | ||
keyspace | ||
(?i)MariaDB | ||
Percona | ||
(?i)Postgres | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ay-core/src/main/java/org/flywaydb/core/internal/publishing/OperationResultPublisher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.