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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hyperbee.Migrations.Providers.Postgres" Version="2.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hyperbee.Migrations.Providers.Postgres" Version="2.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Hyperbee.Migrations.Providers.Postgres" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hyperbee.Migrations.Providers.Postgres --version 2.0.7
                    
#r "nuget: Hyperbee.Migrations.Providers.Postgres, 2.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hyperbee.Migrations.Providers.Postgres@2.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hyperbee.Migrations.Providers.Postgres&version=2.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Hyperbee.Migrations.Providers.Postgres&version=2.0.7
                    
Install as a Cake Tool

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 build command.

Status

Branch Action
develop Build status
main Build status

Help

See Todo

PostgresTest

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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