Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9c83e6

Browse files
Bump version to flyway-11.12.0
Please see the GH release for the release notes
1 parent 9df387c commit b9c83e6

File tree

92 files changed

+1091
-381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1091
-381
lines changed

documentation/Reference/Commands/Check/Check Code.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ flyway check -code
3030
| [`minorTolerance`](<Configuration/Flyway Namespace/Flyway Check Namespace/Flyway Check Minor Tolerance Setting>) | check | The number of minor rules violations to be tolerated before throwing an error. |
3131
| [`regexEnabled`](<Configuration/Flyway Namespace/Flyway Check Namespace/Flyway Check Regex Enabled Setting>) | check | Enable or disable the Regex Engine for code analysis. |
3232
| [`sqlfluffEnabled`](<Configuration/Flyway Namespace/Flyway Check Namespace/Flyway Check SQLFluff Enabled Setting>) | check | Enable or disable the `SQLFluff` Engine for code analysis. |
33-
| [`code.strictMode`](<Configuration/Flyway Namespace/Flyway Check Namespace/Flyway Check Code Strict Mode Setting>) | check | Whether to fail based on the violation severity level. |
33+
| [`code.failOnError`](<Configuration/Flyway Namespace/Flyway Check Namespace/Flyway Check Code Fail On Error Setting>) | check | Whether to fail based on the violation severity level. |
3434
| [`reportFilename`](<Configuration/Flyway Namespace/Flyway Report Filename Setting>) | (root) | The output path of the generated report. |
3535
| [`workingDirectory`](<Command-line Parameters/Working Directory Parameter>) | (root) | The directory to consider the current working directory. All relative paths will be considered relative to this. |
3636
| [{environment parameters}](<Configuration/Environments Namespace>) | (root) | Environment configuration for the source and/or target environments. |
3737

3838
Universal commandline parameters are listed [here](<Command-line Parameters>).
3939

4040
_Note_:
41-
- _Static code analysis will not interrupt the execution of subsequent Flyway verb operations if they are chained. This means that even if a `majorTolerance` or `minorTolerance` error occurs, Flyway will continue processing the remaining verb operations.
41+
- _The following parameters are now deprecated - `majorRules/majorTolerance/minorRules/minorTolerance`. Consider using `failOnError` instead._
42+
- _Static code analysis will not interrupt the execution of subsequent Flyway verb operations if they are chained. This means that even if `failOnError` is enabled, Flyway will continue processing the remaining verb operations.
4243
For this reason, it is recommended to run subsequent Flyway verbs separately._
4344

4445
## JSON output format
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
subtitle: flyway.check.code.strictMode
2+
subtitle: flyway.check.code.failOnError
33
---
44

55
{% include enterprise.html %}
@@ -29,12 +29,12 @@ Boolean
2929
### Command-line
3030

3131
```powershell
32-
./flyway check -code "-check.code.strictMode=true"
32+
./flyway check -code "-check.code.failOnError=true"
3333
```
3434

3535
### TOML Configuration File
3636

3737
```toml
3838
[flyway.check.code]
39-
strictMode = true
39+
failOnError = true
4040
```
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
subtitle: Couchbase
3+
---
4+
5+
- **Status:** Preview
6+
- **Verified Versions:** V7.6.6-N1QL
7+
- **Maintainer:** {% include redgate-badge.html %}
8+
9+
## Supported Versions and Support Levels
10+
11+
{% include database-boilerplate.html %}
12+
13+
## Driver
14+
15+
| Item | Details |
16+
|------------------------------------|----------------------------------------------------|
17+
| **URL format** | `couchbases://cb.<cluster-id>.cloud.couchbase.com` |
18+
| **SSL support** | No |
19+
| **Ships with Flyway Command-line** | Yes |
20+
| **Maven Central coordinates** | n/a |
21+
| **Supported versions** | `7` |
22+
| **Default Java class** | `com.couchbase.client` |
23+
24+
## Terminology
25+
We have to map Flyway concepts and language rooted in the relational database world to Couchbase - this is how Flyway sees the mapping:
26+
27+
| Couchbase Concept | Flyway Concept |
28+
|-------------------|----------------|
29+
| bucket + scope | schema |
30+
| collection | table |
31+
| document | row |
32+
33+
## Using Flyway with Couchbase
34+
35+
### Configuring Flyway
36+
37+
Since Couchbase has no default schema, you must define at least one schema, using either the [`defaultSchema`](<Configuration/Flyway Namespace/Flyway Default Schema Setting>) parameter or the [schemas](<Configuration/Environments Namespace/Environment schemas Setting>) parameter.
38+
39+
The schema can be specified in two ways:
40+
41+
- As {String}, Flyway interprets this string as the `bucket` name. In this case, Flyway uses `_default` as the default `scope`.
42+
43+
- As {String.String}, Flyway splits the value at the `.` character, treating the first part as the `bucket` name and the second part as the `scope` name.
44+
45+
Couchbase does not support embedding credentials (username and password) in the connection URL. Credentials must instead be provided separately through parameters in the Flyway Environment namespace.
46+
47+
```toml
48+
[environments.sample]
49+
url = "couchbases://cb.<cluster-id>.cloud.couchbase.com"
50+
user = "user"
51+
password = "password"
52+
53+
[flyway]
54+
environment = "sample"
55+
defaultSchema = "bucket.scope"
56+
```
57+
58+
### Limitations
59+
60+
- You can't currently do a [Dry-run](<https://documentation.red-gate.com/fd/migration-command-dry-runs-275218517.html>) operation with Couchbase.
61+
- Currently, Flyway allows only one statement per migration. Using multiple statements within a single migration file is not supported
62+
- Schema creation and drop. Flyway currently supports creating and dropping `scope`, but does not support creating or dropping `bucket`.
63+
64+
### Considerations
65+
66+
- Transactions are supported; however, not all statements in Couchbase can be executed within a transaction. Flyway does not attempt to automatically group migrations. When the [group](<onfiguration/Flyway Namespace/Group>) parameter is enabled, it is the user’s responsibility to ensure that all statements are transaction-compatible.
67+
- Currently, when connecting via the Flyway command line, a warning message related to `SLF4J binding` may appear. This is a known issue and is under investigation.
68+
- Couchbase is supported only in `Native Connectors` mode. If the environment variable `FLYWAY_NATIVE_CONNECTORS` is set to `false` then Flyway will be unable to operate and will output an error "No Flyway database plugin found to handle ...".
69+
- Foundational support is currently in preview and has been verified only in cloud deployments. If you encounter any issues when using it with on-premise deployments, please report them through any convenient channel.

documentation/Reference/Database Driver Reference/SQL Server Database.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ INSERT INTO ${tableName} (name) VALUES ('Mr. T');
139139

140140
## Authentication
141141

142+
For Flyway Desktop, please see [using SQL Server with Flyway Desktop](https://documentation.red-gate.com/flyway/getting-started-with-flyway/system-requirements/flyway-desktop-requirements/flyway-desktop-using-sql-server).
142143
SQL Server supports several methods of authentication. These include:
143144

144145
- SQL Server Authentication

documentation/Release notes and older versions/Release Notes for Flyway Engine.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,47 @@
77

88
</div>
99
<div class="col-md-9">
10+
<div class="release">
11+
<h2 id="11.11.2">Flyway 11.11.2 (2025-08-21)</h2>
12+
13+
<h3>New features</h3>
14+
<ul>
15+
<li>afterConnect callback is now available outside of Native Connectors</li>
16+
</ul>
17+
18+
<h3>Database compatibility</h3>
19+
<ul>
20+
<li>Fixed jar for aws-secretsmanager</li>
21+
</ul>
22+
23+
<h3>Library upgrades</h3>
24+
<ul>
25+
<li>Upgraded RgCompare.Cli from 1.39.4.1185 to 1.40.1.1194</li>
26+
<li>Bump Netty-common, netty-resolver and netty-codec-http2 to 4.1.124 to fix CVE-2025-55163</li>
27+
</ul>
28+
29+
</div>
30+
31+
<div class="release">
32+
<h2 id="11.11.1">Flyway 11.11.1 (2025-08-14)</h2>
33+
34+
<h3>New features</h3>
35+
<ul>
36+
<li>Table of useful configuration options will now print if no migrations found</li>
37+
</ul>
38+
39+
<h3>Changes</h3>
40+
<ul>
41+
<li>When performing operations using the results of database comparison capabilities (model, generate, prepare, diffText) for SQL Server and Oracle databases, selecting static data differences will fail if the associated table does not exist in the target database and is not also included for selection</li>
42+
</ul>
43+
44+
<h3>Library upgrades</h3>
45+
<ul>
46+
<li>Upgraded RgCompare.Cli from 1.39.0.1098 to 1.39.4.1185</li>
47+
</ul>
48+
49+
</div>
50+
1051
<div class="release">
1152
<h2 id="11.11.0">Flyway 11.11.0 (2025-08-08)</h2>
1253

documentation/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
flywayVersion: 11.11.2
1+
flywayVersion: 11.12.0
22
enterpriseUrl: https://download.red-gate.com/maven/release/com/redgate/flyway
33
kramdown:
44
smart_quotes: ["apos", "apos", "quot", "quot"]

documentation/_vale_config/styles/config/vocabularies/db/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Sybase
77
Testcontainers
88
Timeplus
99
Cubrid
10+
Couchbase
1011

1112
# Cassandra
1213
keyspace

flyway-commandline/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.flywaydb</groupId>
66
<artifactId>flyway-parent</artifactId>
7-
<version>11.11.2</version>
7+
<version>11.12.0</version>
88
</parent>
99
<artifactId>flyway-commandline</artifactId>
1010
<packaging>jar</packaging>
@@ -761,6 +761,12 @@
761761

762762

763763

764+
765+
766+
767+
768+
769+
764770

765771

766772

flyway-commandline/src/main/assembly/component.xml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,6 @@
213213
<includes>
214214
<include>org.fusesource.jansi:jansi</include>
215215
</includes>
216-
<excludes>
217-
<exclude>org.reactivestreams:reactive-streams</exclude>
218-
</excludes>
219216
</dependencySet>
220217
<dependencySet>
221218
<outputDirectory>lib</outputDirectory>
@@ -241,20 +238,13 @@
241238

242239

243240
</includes>
244-
<excludes>
245-
<exclude>io.netty:netty-*</exclude>
246-
<exclude>org.reactivestreams:reactive-streams</exclude>
247-
</excludes>
248241
</dependencySet>
249242
<dependencySet>
250243
<outputDirectory>lib/aad</outputDirectory>
251244
<useTransitiveFiltering>true</useTransitiveFiltering>
252245
<includes>
253246
<include>com.microsoft.azure:msal4j</include>
254247
<include>com.azure:azure-identity</include>
255-
<include>com.microsoft.azure:azure-core</include>
256-
<include>com.microsoft.azure:azure-core-http-netty</include>
257-
<include>com.microsoft.azure:azure-json</include>
258248
<include>org.reactivestreams:reactive-streams</include>
259249
</includes>
260250
<excludes>
@@ -263,7 +253,6 @@
263253
<exclude>net.minidev:json-smart</exclude>
264254
<exclude>net.minidev:accessors-smart</exclude>
265255
<exclude>com.nimbusds:content-type</exclude>
266-
<exclude>com.nimbusds:lang-tang</exclude>
267256
<exclude>com.nimbusds:nimbus-jose-jwt</exclude>
268257
<exclude>com.nimbusds:oauth2-oidc-sdk</exclude>
269258
</excludes>
@@ -345,6 +334,7 @@
345334

346335

347336

337+
348338

349339

350340
<include>org.flywaydb:flyway-database-ignite</include>
@@ -379,12 +369,11 @@
379369
<include>com.google.cloud:google-cloud-spanner-jdbc</include>
380370
<include>com.google.api:gax</include>
381371
</includes>
382-
<excludes>
383-
<exclude>commons-logging:commons-logging</exclude>
384372

385373

386374

387-
</excludes>
375+
376+
388377
</dependencySet>
389378
<dependencySet>
390379
<outputDirectory>drivers/cassandra</outputDirectory>
@@ -416,26 +405,23 @@
416405
<excludes>
417406
<exclude>com.amazonaws.secretsmanager:aws-secretsmanager-jdbc</exclude>
418407
<exclude>org.flywaydb:flyway-*</exclude>
419-
<exclude>org.flywaydb.enterprise:flyway-*</exclude>
420408
<exclude>org.flywaydb:flyway-*</exclude>
421409
<exclude>org.fusesource.jansi:jansi</exclude>
422410
<exclude>software.amazon.awssdk:s3</exclude>
423411
<exclude>org.slf4j:slf4j-nop</exclude>
424412
<exclude>org.apache.commons:commons-text</exclude>
425413
<exclude>com.fasterxml.jackson.dataformat:jackson-dataformat-xml</exclude>
426414
<exclude>com.fasterxml.jackson.dataformat:jackson-dataformat-toml</exclude>
427-
<exclude>com.fasterxml.jackson.datatype:jackson-datatype-jsr310</exclude>
428415
<exclude>com.fasterxml.jackson.core:jackson-databind</exclude>
429416
<exclude>com.microsoft.azure:msal4j</exclude>
430417
<exclude>com.azure:azure-identity</exclude>
431418
<exclude>com.ing.data:cassandra-jdbc-wrapper</exclude>
432419
<exclude>com.google.cloud:google-cloud-spanner-jdbc</exclude>
433420
<exclude>net.java.dev.jna</exclude>
434421
<exclude>org.mongodb:mongodb-driver-sync</exclude>
435-
<exclude>io.netty:netty-*</exclude>
436-
<exclude>com.oracle.database.security:oraclepki</exclude>
437-
<exclude>com.oracle.database.security:osdt_cert</exclude>
438-
<exclude>com.oracle.database.security:osdt_core</exclude>
422+
423+
424+
439425

440426

441427

flyway-commandline/src/main/java/org/flywaydb/commandline/MavenVersionChecker.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,13 @@ private MavenMetadata getMavenMetadata()
112112
}
113113

114114
private static MigrationVersion getCurrentVersion() {
115-
return MigrationVersion.fromVersion(VersionPrinter.getVersion());
115+
String currentVersion = VersionPrinter.getVersion();
116+
117+
// Extra suffixes in the current version may cause MigrationVersion parsing to fail
118+
int idx = currentVersion.indexOf('-');
119+
currentVersion = idx >= 0 ? currentVersion.substring(0, idx) : currentVersion;
120+
121+
return MigrationVersion.fromVersion(currentVersion);
116122
}
117123

118124
private static String getMessage(final MigrationVersion latest) {

0 commit comments

Comments
 (0)