Flexible approaches and workflows with Redgate Flyway

Flyway is the industry-leading solution for flexibility in database change management. Where other tools lock teams into rigid workflows, Flyway adapts to how your team works best – now and in the future.

Whether you're new to Flyway or revisiting your configuration for a new project, your team can make key workflow decisions that shape how database changes are managed, deployed, and governed.

Standardize your approach today and confidently scale into more advanced workflows over time, without changing tools.

Contact our database experts and see how Flyway’s flexible deployment options fits your process—now and as you scale.

Contact us

Flexible deployment approaches

Choosing the right deployment approach

Not sure how state-based or migrations-based deployment is defined, or what approach is best for your team and database estate? Use the guide below to help decide the best approach for your current situation—and how you can evolve with Flyway as your team and data needs change.

Illustration depicting State-based deployments

State-based deployments

State-based deployments use your desired end-state schema to automatically generate deployment scripts. This approach works well when you’re getting started, when your changes can be accurately handled by schema comparison, or when you’re already working with a schema model – particularly if those changes don’t involve complex logic or transactional data updates.

Video: What is state-based deployment (4 mins)
Illustration depicting Migrations-based deployments

Migrations-based deployments

Migrations-based deployments require versioned scripts to define and apply each change step-by-step. This approach gives you more granular control over how changes are introduced, making it ideal for managing complex logic, coordinating with application changes, and supporting full traceability, rollback, and auditability.

Video: What is migration-based deployment (7 mins)

When to consider state-based

ScenarioWhy this works
You're just getting started with establishing structure in your database change management workflowsAutomates deployment from a model of the schema , no need to script every change manually. Great for stabilizing early pipelines.
Your team already maintains object-level scriptsFlyway can pick up where your current process leaves off, adding more control and visibility without heavy refactoring.
You make simple database changesSchema comparison works well when changes are predictable and low risk.

When to consider migrations-based

ScenarioWhy this works
You manage frequent, complex, or high-risk changesVersioned scripts give you full control over how changes are applied—and let you roll back or reapply with confidence.
You need full auditability and want to track every changeEach migration is versioned and stored in version control, providing a clear change history.
Your deployment process involves non-SQL scripts, custom branching, or callbacksOnly migrations-based workflows support advanced deployment logic, branching, and scripting.
You're planning to adopt DevOps at scale and want maximum automation and governanceFor complex environments, migrations provide the structure needed for safe, scalable automation.

Future-proof your approach

Evolving from state-based to migrations-based deployments

As your team grows and your needs become more complex, you might find that the state-based approach no longer provides enough control or scalability. Flyway offers a smooth transition from state-based deployments to fully versioned migrations, allowing you to evolve your practices gradually without disruption.

“It is a highly configurable solution that enables a bespoke migrations-based deployment strategy to be created that is easy to adopt and scale across teams.”

Flexible workflow options

Configure workflows to fit your team

Your workflow matters just as much as your deployment strategy both now and in the future. Flyway provides intuitive, powerful configuration options to match your team's tools, skills, and goals.

Automated CLI developer workflows

Run Flyway directly in your developer workflow—locally or in pipelines—using the CLI. Automate script generation and execution, validation, and deployment with simple commands.

Perfect for teams who prefer to use the CLI to automate development tasks instead of learning how to use Flyway’s GUI (Flyway Desktop). Workflows can be automated in Flyway Enterprise to support, for example, the auto-generation of migration scripts.

These workflows cover a range of development tasks, such as:

  • Setting up a new project
  • Capturing object-level history
  • Preparing for a deployment by generating migration scripts

Value of automating your workflows

Gets you started quicker

Automate initial setup and repetitive tasks to save time.

 

Provides a repeatable, reliable process

Ensure consistency and reliability in your workflows.

 

Standardizes across teams

Maintain a uniform process regardless of individual preferences.

 

Script generation and baseline options that fit your setup

Flyway gives you flexible ways to generate migrations and establish a starting point for your versioned migration workflows. — Whether you're working with a new project or a legacy system, these foundational capabilities help set the stage for a smooth, consistent deployment process.

Options to meet your needs include:

  • Backups as baselines
  • Automatic shadow database
  • No shadow script generation

Value of configurable workflow integrations

Backups as baselines

Save time, reduce complexity. Restoring a backup from file provides a baseline.

 

No shadow script generation

Removes complexity and cost of requiring a shadow DB to generate migrations.

 

Automatic shadow database

Simplifies set-up of a shadow database.

 

Further reading

Article

Automated State-based Deployments in Flyway

This article explains how Flyway's state-based deployments work, where they fit best, and when it makes sense to move to a migration-based approach.

Article

Automating Flyway Desktop Development using the Flyway CLI

Learn how to use the Flyway CLI to automate the database development workflow used in the Flyway Desktop GUI, where we capture the schema changes made to a local development database, and then use schema comparison to auto-generate and validate a Flyway versioned migration script.

Article

Getting Started with Flyway SQL Code Analysis Rules

This article explains how Flyway's regex-based code checks work and how to start running checks on Flyway-managed databases.

We're here to help

0800 028 0309

Contact us to find out how Redgate Flyway can help your team deliver value quicker while keeping your data safe.

The industry standard tools for 25 years

Redgate has specialized in database software for 25 years. Our products are used by 804,000 IT professionals, in more than 100,000 companies.

World-class support

Redgate offers comprehensive documentation and a friendly, helpful support team. An average 87% of customers rate our support 'Excellent'.