Fluens.Migrations.PostgreSql
0.7.9
dotnet add package Fluens.Migrations.PostgreSql --version 0.7.9
NuGet\Install-Package Fluens.Migrations.PostgreSql -Version 0.7.9
<PackageReference Include="Fluens.Migrations.PostgreSql" Version="0.7.9" />
<PackageVersion Include="Fluens.Migrations.PostgreSql" Version="0.7.9" />
<PackageReference Include="Fluens.Migrations.PostgreSql" />
paket add Fluens.Migrations.PostgreSql --version 0.7.9
#r "nuget: Fluens.Migrations.PostgreSql, 0.7.9"
#:package Fluens.Migrations.PostgreSql@0.7.9
#addin nuget:?package=Fluens.Migrations.PostgreSql&version=0.7.9
#tool nuget:?package=Fluens.Migrations.PostgreSql&version=0.7.9
Fluens.Migrations.PostgreSql
PostgreSQL provider for Fluens.Migrations — jsonb attempt_history column type, citext/timestamptz column helpers, and FluentMigrator.Postgres partial-index filters.
Installation
dotnet add package Fluens.Migrations.PostgreSql
Usage
Opt in from the AddFluens callback on FluentMigrator's own ConfigureRunner pipeline — there is no separate
top-level registration method:
services.AddFluentMigratorCore()
.ConfigureRunner(rb => rb
.AddPostgres() // FluentMigrator's own provider registration
.WithGlobalConnectionString(connectionString)
.ScanIn(typeof(CreateOrdersSchema).Assembly).For.Migrations()
.AddFluens(f => f.AddPostgres())); // Fluens provider-conventions opt-in
AddPostgres() registers PostgreSqlMigrationConventions as the singleton IMigrationProviderConventions
(TryAddSingleton — calling it twice, or alongside AddSqlServer(), keeps whichever ran first). FluentMigrator's
own constructor injection resolves it into every FluensMigration subclass at runtime — a single, unchanged
migration class creates the same schema on both providers.
Conventions
| Convention | Value |
|---|---|
JsonColumnType (dead-letter attempt_history) |
jsonb |
ApplyFilter |
FluentMigrator.Postgres's .Filter(predicate) extension, applied verbatim |
Column type helpers
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
AsCitext() requires the citext extension to be enabled in the target database.
License
This project is licensed under the MIT License.
| 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
- Fluens.Migrations (>= 0.7.9)
- FluentMigrator.Extensions.Postgres (>= 8.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.