You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`batch`](<Configuration/Flyway Namespace/Flyway Batch Setting>)| Community | Boolean | Whether to batch SQL statements when executing them. |
53
+
|[`callbackLocations`](<Configuration/Flyway Namespace/Flyway Callback Locations Setting>)| Community | String array | Locations to scan recursively for callbacks to use to hook into the Flyway lifecycle. |
53
54
|[`callbacks`](<Configuration/Flyway Namespace/Flyway Callbacks Setting>)| Community | String array | Callbacks to use to hook into the Flyway lifecycle. |
54
55
|[`cherryPick`](<Configuration/Flyway Namespace/Flyway Cherry Pick Setting>)| Teams | String array | A list of migrations that Flyway should consider when migrating. |
55
56
|[`createSchemas`](<Configuration/Flyway Namespace/Flyway Create Schemas Setting>)| Community | Boolean | Create the configured schemas if they do not exist. |
Array of locations to scan recursively for callbacks. The location type is determined by its prefix.
9
+
10
+
Callbacks can also be scanned from [migration locations](<Configuration/Flyway Namespace/Flyway Locations Setting>).
11
+
12
+
### Classpath
13
+
14
+
Locations without a prefix or locations starting with <code>classpath:</code> point to a package on the classpath and may contain both SQL and Java-based callbacks. You must ensure the package is available on the classpath (see [Adding to the classpath](<Usage/Adding to the classpath>)).
15
+
16
+
### Filesystem
17
+
18
+
Locations starting with <code>filesystem:</code> point to a directory on the filesystem, may only contain SQL callbacks and are only scanned recursively down non-hidden directories.
19
+
Relative paths will be resolved against your [working directory](<Command-line Parameters/Working Directory Parameter>).
20
+
21
+
### Amazon S3
22
+
23
+
Locations starting with <code>s3:</code> point to a bucket in AWS S3, may only contain SQL callbacks, and are scanned recursively. They are in the format <code>s3:<bucket>(/optionalfolder/subfolder)</code>. To use AWS S3, the [AWS SDK v2](https://mvnrepository.com/artifact/software.amazon.awssdk/services) and dependencies must be included, and [configured](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html) for your S3 account.<br/>
24
+
25
+
### Google Cloud Storage
26
+
27
+
{% include teams.html %}
28
+
29
+
Locations starting with <code>gcs:</code> point to a bucket in Google Cloud Storage, may only contain SQL callbacks, and are scanned recursively. They are in the format <code>gcs:<bucket>(/optionalfolder/subfolder)</code>. To use GCS, the GCS library must be included, and the GCS environment variable <code>GOOGLE_APPLICATION_CREDENTIALS</code> must be set to the credentials file for the service account that has access to the bucket.<br/>
30
+
31
+
### Wildcards
32
+
33
+
Locations can contain wildcards. This allows matching against a path pattern instead of a single path. Supported wildcards:<br/>
34
+
<ul>
35
+
<li>
36
+
<code>**</code> : Matches any 0 or more directories. (e.g. <code>db/**/test</code> will match <code>db/version1.0/test</code>, <code>db/version2.0/test</code>, <code>db/development/version/1.0/test</code> but not <code>db/version1.0/release</code>)
37
+
</li>
38
+
<li>
39
+
<code>*</code> : Matches any 0 or more non-separator characters. (e.g. <code>db/release1.*</code> will match <code>db/release1.0</code>, <code>db/release1.1</code>, <code>db/release1.123</code> but not <code>db/release2.0</code>)
40
+
</li>
41
+
<li>
42
+
<code>?</code> : Matches any 1 non-separator character. (e.g. <code>db/release1.?</code> will match <code>db/release1.0</code>, <code>db/release1.1</code> but not <code>db/release1.11</code>)
43
+
</li>
44
+
</ul>
45
+
46
+
## Type
47
+
48
+
String array
49
+
50
+
## Default
51
+
52
+
<i>None</i>
53
+
54
+
## Usage
55
+
56
+
### Flyway Desktop
57
+
58
+
This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.
59
+
60
+
### Command-line
61
+
62
+
```powershell
63
+
./flyway -callbackLocations="filesystem:callbacks" info
By downloading Flyway Community you confirm that you have read and agree to the terms of the <ahref="https://www.red-gate.com/assets/purchase/assets/subscription-license.pdf">Redgate EULA</a>.
By downloading Flyway Community you confirm that you have read and agree to the terms of the <ahref="https://www.red-gate.com/assets/purchase/assets/subscription-license.pdf">Redgate EULA</a>.
81
+
82
+
---
78
83
79
84
Please note, the `groupId` changed at Flyway V10.0.0 from `org.flywaydb.enterprise` to `com.redgate.flyway` and published as a convenience in both locations up till Flyway V10.22.0
80
85
81
86
For older versions see [Accessing Older Versions of Flyway Engine](https://documentation.red-gate.com/flyway/release-notes-and-older-versions/accessing-older-versions-of-flyway-engine)
0 commit comments