Redgate Flyway

Get started with Flyway Insights

ENTERPRISE

Flyway Insights is in public preview for Flyway Enterprise users. Features may change before general availability. Got an idea or found a problem? Tell us what you think

Connect Flyway to Flyway Insights so every deployment is recorded.

Before you start, you need:

1. Turn on publishing

Tracking changes is a project setting, so it's saved in your project's flyway.toml and applies to everyone who uses the project:

  • Flyway Desktop sets publishResult = true in flyway.toml.


You can turn on tracking in the following ways:

From the prompt:
Open your project and go to the Deploy or Automate deployment page. At the top of the page, you'll see Track this project with Flyway Insights. Select Enable tracking. That's it; the setting is saved to the flyway.toml file straight away.


From project settings:

  1. Select the cog (Configure project settings) to open Project settings.


  2. On the General tab, under Flyway Insights, select Track this project's deployments in Flyway Insights.


  3. Click Save.


Add this to the [flyway] section of your project's flyway.toml:

[flyway]
publishResult = true


If you didn't create the project with Flyway Desktop or flyway init, also make sure the top of flyway.toml identifies the project:

databaseType = "<yourDatabaseType>"
id = "<a new GUID>"
name = "<yourProjectName>"

The easiest way to get these is to run flyway init, which writes them for you. To generate a GUID yourself, run [guid]::NewGuid() in PowerShell or uuidgen on macOS or Linux.

To leave an environment out, such as a local development database, set publishResult = false for that environment:

[environments.development.flyway]
publishResult = false


Then save the flyway.toml file.

2. Commit and push

Commit and push flyway.toml so your automated deployments are tracked too.

3. Run it in CI/CD

Every time flyway migrate, flyway deploy, or flyway check -drift is called for this project, the results will be published to Flyway Insights.

Create a Personal Access Token

When deploying with Flyway locally via the CLI or Flyway Desktop, or as part of a CI/CD process, you'll need to ensure Flyway Enterprise is authenticated by logging in with your Redgate ID or using a Personal Access Token (usually done in CI/CD pipelines).

  1. Go to Redgate Personal Access Tokens.

  2. Sign in with the Redgate ID you want your pipeline's deployments recorded under. Make sure it's in your Redgate organization, so your colleagues can see them.

  3. Select New token, and copy the token. You won't be able to see the full token again.


Treat the token like a password. Store it as a secret variable in your CI/CD tool, and never commit it to source control.

Pass the token to Flyway

With publishResult = true committed in flyway.toml, set these secret variables in your pipeline:

FLYWAY_EMAIL=<email address linked to your PAT>
FLYWAY_TOKEN=<your PAT>

If you'd rather not change flyway.toml, set an environment variable, FLYWAY_PUBLISH_RESULT=true. Or pass everything on the command line, taking the token from a secret variable:

flyway migrate -email=<your email> -token=<$your PAT> -publishResult=true

Prefer to be guided? Sign in to Flyway Insights, open Deployments and select Add pipeline.


Note: Manual deployments from Flyway Desktop are not yet published out of the box, since email and token parameters are also needed.  Add these to your flyway.toml under [flyway] to publish from Flyway Desktop until we fix this.  Be sure to keep your TOKEN as a secret and out of source control.


4. View your deployments

Go to Flyway Insights (https://flyway.red-gate.com) and sign in with your Redgate ID. Until your organization's first deployment is published, the Deployments page is empty. You can explore the sample data.  Once you have published data, your project appears with its latest status:


Select the project to see its environments. On an environment, select Show more, or Deployment history, to see every deployment, the name of the script that ran, and how long they took.

Next steps

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?