Moongate.Persistence.Migrations 0.23.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Moongate.Persistence.Migrations --version 0.23.0
                    
NuGet\Install-Package Moongate.Persistence.Migrations -Version 0.23.0
                    
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="Moongate.Persistence.Migrations" Version="0.23.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Moongate.Persistence.Migrations" Version="0.23.0" />
                    
Directory.Packages.props
<PackageReference Include="Moongate.Persistence.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 Moongate.Persistence.Migrations --version 0.23.0
                    
#r "nuget: Moongate.Persistence.Migrations, 0.23.0"
                    
#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 Moongate.Persistence.Migrations@0.23.0
                    
#: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=Moongate.Persistence.Migrations&version=0.23.0
                    
Install as a Cake Addin
#tool nuget:?package=Moongate.Persistence.Migrations&version=0.23.0
                    
Install as a Cake Tool

Moongate.Persistence.Migrations

Driver-independent discovery and validation of versioned PostgreSQL SQL migrations for .NET 11.

dotnet add package Moongate.Persistence.Migrations

Core SQL lives in migrations/auth or migrations/world. Plugin bundles carry migrations/manifest.json with a stable id and the same target directories. Files use positive four-digit sequences: 0001_create_characters.sql.

The catalog orders core first, then plugins by ID, then component sequence. MigrationHistory.Validate rejects changes to applied SQL, missing files in installed components, and newly inserted earlier sequences. SHA-256 checksums normalize CRLF to LF and ignore a UTF-8 BOM. Removed plugin histories remain.

using Moongate.Persistence.Migrations.Types.Migrations;

Console.WriteLine(MigrationTarget.World);

MigrationCatalog.Load(directory, pluginsDirectory, target) reads SQL without loading plugin DLLs. MigrationHistory.ReadAsync uses a caller-owned DbCommand factory; it never creates database objects or executes migrations.

Use mgctl migrate apply to apply reviewed SQL with DbUp. See the persistence guide.

Licensed under AGPL-3.0-or-later. See the source repository and license.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net11.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Moongate.Persistence.Migrations:

Package Downloads
Moongate.Persistence

Asynchronous PostgreSQL persistence for serial-identified entities, powered by FreeSql.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.24.0 64 11/28/2026
0.23.0 67 11/27/2026
0.22.0 71 11/27/2026
0.21.0 119 11/3/2026
0.20.1 129 10/22/2026
0.20.0 117 10/22/2026
0.19.0 130 10/16/2026
0.18.0 134 10/16/2026
0.17.0 125 10/14/2026
0.16.0 124 10/9/2026
0.15.0 121 10/7/2026
0.14.0 126 10/4/2026
0.13.0 125 10/3/2026
0.12.0 124 10/2/2026
0.11.0 124 9/30/2026
0.10.0 128 9/30/2026
0.9.0 132 9/27/2026
0.8.0 125 9/26/2026
0.7.0 133 9/24/2026
0.6.0 132 9/21/2026