Hyperbee.Migrations.Providers.Postgres
2.0.7
dotnet add package Hyperbee.Migrations.Providers.Postgres --version 2.0.7
NuGet\Install-Package Hyperbee.Migrations.Providers.Postgres -Version 2.0.7
<PackageReference Include="Hyperbee.Migrations.Providers.Postgres" Version="2.0.7" />
<PackageVersion Include="Hyperbee.Migrations.Providers.Postgres" Version="2.0.7" />
<PackageReference Include="Hyperbee.Migrations.Providers.Postgres" />
paket add Hyperbee.Migrations.Providers.Postgres --version 2.0.7
#r "nuget: Hyperbee.Migrations.Providers.Postgres, 2.0.7"
#:package Hyperbee.Migrations.Providers.Postgres@2.0.7
#addin nuget:?package=Hyperbee.Migrations.Providers.Postgres&version=2.0.7
#tool nuget:?package=Hyperbee.Migrations.Providers.Postgres&version=2.0.7
Hyperbee Migrations
Introduction
Hyperbee Migrations is a migration framework for .NET. Migrations are a structured way to alter your database schema and are an alternative to creating lots of database scripts that have to be run manually by every developer involved. Migrations solve the problem of evolving a database schema (and data) for multiple databases (for example, the developer's local database, the test database and the production database). Database changes are described in classes written in C# that can be checked into a version control system.
The framework API is heavily influenced by Fluent Migrator, Raven Migrations and DbUp
The Cron Helper uses HangFire Cronos.
Features include:
- Easy integration
- Supports Couchbase, MongoDB and Postgresql
- Preventing simultaneous migrations
- By default, Hyperbee Migrations prevents parallel migration runner execution.
- Profiles
- There are times when you may want to scope migrations to specific environments.
- A Record Store
- Keeps list of migrations that have completed
- Local Solutions
- Run a migration locally
- Run from Command Line
- Run a migration at the command line
- Cron Helper
- Run a migration based on a start and stop criteria using a cron setting
- Journaling
- You can determine whether or not to journal the migration
A Migration Example
A migration looks like the following:
// #1 - specify the migration number
[Migration(1)]
public class PeopleHaveFullNames : Migration // #2 inherit from Migration
{
// #3 do the migration
public async override Task UpAsync( CancellationToken cancellationToken = default )
{
}
// #4 optional: undo the migration
public async override Task DownAsync( CancellationToken cancellationToken = default )
{
}
}
Build Requirements
- To build and run this project, .NET 10 SDK is required.
- Ensure your development tools are compatible with .NET 10.
Building the Solution
- With .NET 10 SDK installed, you can build the solution using the standard
dotnet buildcommand.
Status
| Branch | Action |
|---|---|
develop |
|
main |
Help
See Todo
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Hyperbee.Migrations (>= 2.0.7)
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 5.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Hosting (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Npgsql (>= 10.0.1)
- Npgsql.DependencyInjection (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.7 | 157 | 12/23/2025 |
| 2.0.3 | 732 | 4/14/2025 |
| 2.0.3-develop.250414153512 | 183 | 4/14/2025 |
| 2.0.2 | 209 | 3/17/2025 |
| 2.0.2-develop.250317161245 | 145 | 3/17/2025 |
| 2.0.1 | 168 | 2/17/2025 |
| 2.0.0 | 149 | 11/21/2024 |
| 2.0.0-develop.241121151205 | 87 | 11/21/2024 |
| 1.2.7 | 192 | 4/30/2024 |
| 1.2.7-develop.240430153808 | 102 | 4/30/2024 |
| 1.2.7-develop.240430124929 | 90 | 4/30/2024 |