Fluens.Migrations 0.6.6

dotnet add package Fluens.Migrations --version 0.6.6
                    
NuGet\Install-Package Fluens.Migrations -Version 0.6.6
                    
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="Fluens.Migrations" Version="0.6.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluens.Migrations" Version="0.6.6" />
                    
Directory.Packages.props
<PackageReference Include="Fluens.Migrations" />
                    
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 Fluens.Migrations --version 0.6.6
                    
#r "nuget: Fluens.Migrations, 0.6.6"
                    
#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 Fluens.Migrations@0.6.6
                    
#: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=Fluens.Migrations&version=0.6.6
                    
Install as a Cake Addin
#tool nuget:?package=Fluens.Migrations&version=0.6.6
                    
Install as a Cake Tool

Fluens.Migrations

FluentMigrator base classes and helpers for inbox/outbox tables, dead letters, HiLo sequences, and auditable/deletable columns. Zero Fluens dependencies.

Installation

dotnet add package Fluens.Migrations

Usage

public class CreateOrdersSchema : FluensMigration
{
    public override void Up()
    {
        Create.Schema("orders");

        Create.Table("orders").InSchema("orders")
            .WithColumn("id").AsGuid().PrimaryKey()
            .WithColumn("number").AsString(50).NotNullable()
            .WithColumn("total").AsDecimal().NotNullable()
            .WithAuditableAndDeletableColumns()
            .WithVersionColumn();

        CreateMessagingTables("orders"); // outbox + inbox + dead_letters
        CreateHiLoSequence("orders_hilo", "orders");
    }

    public override void Down()
    {
        DeleteMessagingTables("orders");
        DeleteHiLoSequence("orders_hilo", "orders");
        Delete.Table("orders").InSchema("orders");
    }
}

Helpers: WithAuditableColumns(), WithDeletableColumn(), WithAuditableAndDeletableColumns(), WithVersionColumn(), CreateOutboxTable(), CreateInboxTable(), CreateDeadLettersTable(), CreateMessagingTables(), CreateHiLoSequence(), DeleteOutboxTable(), DeleteInboxTable(), DeleteDeadLettersTable(), DeleteMessagingTables(), DeleteHiLoSequence().

PostgreSQL Column Types

Use Fluens.Migrations.PostgreSql for PostgreSQL-specific column types:

using Fluens.Migrations.PostgreSql;

Create.Table("customers").InSchema("orders")
    .WithColumn("id").AsInt32().PrimaryKey().Identity()
    .WithColumn("email").AsCitext().NotNullable()         // case-insensitive text
    .WithColumn("created_at").AsTimestampTz().NotNullable(); // timestamp with time zone

Helpers: AsCitext(), AsTimestampTz().

License

This project is licensed under the MIT License.

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
0.6.6 81 3/11/2026
0.6.5 81 3/4/2026
0.6.4 78 3/4/2026
0.6.3 83 3/3/2026
0.6.2 88 3/2/2026
0.6.1 84 3/2/2026
0.6.0 83 3/1/2026
0.5.7 89 3/1/2026
0.5.6 83 3/1/2026
0.5.5 83 2/28/2026
0.5.4 88 2/28/2026
0.5.3 90 2/27/2026
0.5.2 87 2/27/2026
0.5.1 86 2/27/2026
0.5.0 91 2/26/2026
0.3.2 91 2/26/2026
0.3.1 86 2/26/2026
0.3.0 88 2/24/2026
0.2.5 87 2/24/2026
0.2.4 86 2/24/2026
Loading failed