CommunityToolkit.Aspire.Hosting.Flyway
13.3.0
Prefix Reserved
dotnet add package CommunityToolkit.Aspire.Hosting.Flyway --version 13.3.0
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Flyway -Version 13.3.0
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Flyway" Version="13.3.0" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Flyway" Version="13.3.0" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Flyway" />
paket add CommunityToolkit.Aspire.Hosting.Flyway --version 13.3.0
#r "nuget: CommunityToolkit.Aspire.Hosting.Flyway, 13.3.0"
#:package CommunityToolkit.Aspire.Hosting.Flyway@13.3.0
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Flyway&version=13.3.0
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Flyway&version=13.3.0
CommunityToolkit.Aspire.Hosting.Flyway
An Aspire hosting integration for Flyway, a database migration tool that helps manage and automate database schema changes.
This integration is meant to be used in conjunction with a database resource, such as PostgreSQL, and the Flyway extension built for that database resource. It is also meant to be used by integration developers who want to add Flyway support to more database resources.
Getting started
Prerequisites
- .NET 8.0 or later
- Docker (for running the Flyway and database containers)
Installation
Install the package by adding a PackageReference to your AppHost project:
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Flyway" />
Or to your file-based AppHost:
#:package CommunityToolkit.Aspire.Hosting.Flyway@13.*
Usage
In your AppHost project, call the AddFlyway method to add Flyway to your application with a migration scripts directory:
var builder = DistributedApplication.CreateBuilder(args);
var flyway = builder.AddFlyway("flyway", "./migrations");
// The rest of AppHost
builder.Build().Run();
The migrationScriptsPath parameter specifies the path to your migration scripts on the host machine, which will be mounted into the Flyway container.
Feedback & contributing
This is an early version of the Flyway integration. It is production-ready, but not yet feature complete. If you have any suggestions for features or improvements, please open an issue or a pull request on the GitHub repository. We welcome feedback and contributions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Aspire.Hosting (>= 13.3.0)
-
net8.0
- Aspire.Hosting (>= 13.3.0)
-
net9.0
- Aspire.Hosting (>= 13.3.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CommunityToolkit.Aspire.Hosting.Flyway:
| Package | Downloads |
|---|---|
|
CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions
An Aspire integration for extending postgres hosting. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.3.0 | 1,418 | 5/14/2026 |
| 13.2.1-beta.604 | 61 | 5/14/2026 |
| 13.2.1-beta.532 | 1,237 | 3/13/2026 |
| 13.2.1-beta.531 | 73 | 3/11/2026 |
| 13.2.1-beta.528 | 70 | 3/5/2026 |
| 13.1.2-beta.518 | 469 | 2/17/2026 |
| 13.1.2-beta.516 | 98 | 2/9/2026 |
| 13.1.2-beta.515 | 148 | 2/2/2026 |
| 13.1.2-beta.514 | 215 | 1/30/2026 |
| 13.1.2-beta.513 | 68 | 1/29/2026 |
| 13.1.2-beta.512 | 70 | 1/29/2026 |
| 13.1.2-beta.511 | 75 | 1/28/2026 |
| 13.1.2-beta.509 | 77 | 1/20/2026 |
| 13.1.2-beta.508 | 79 | 1/19/2026 |
| 13.1.2-beta.507 | 69 | 1/19/2026 |
| 13.1.2-beta.506 | 78 | 1/16/2026 |
| 13.1.2-beta.505 | 76 | 1/16/2026 |
| 13.1.2-beta.504 | 71 | 1/16/2026 |
| 13.1.1 | 12,340 | 1/16/2026 |
| 13.1.1-beta.502 | 71 | 1/16/2026 |