Skip to content

Releases: nschema-org/NSchema.Postgres

v4.3.0

Choose a tag to compare

@github-actions github-actions released this 09 Jul 20:04
d63e34a

Added

  • Support for the MIGRATION FOR data migrations introduced in NSchema.Core 4.3.

Changed

  • A plan action this provider doesn't recognize now reports that the plan may come from a newer NSchema.Core than the provider supports, and to check for a provider update.

Fixed

  • Schema introspection no longer surfaces the schema owner's implicit USAGE self-grant, which materializes in the ACL once any schema grant is applied and read as a phantom "revoke from the owner" on the next plan. Table grants already excluded the owner; schema grants now do the same.

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 01 Jul 17:36
7a05982

Added

  • Added plugin manifest to allow for automatic registration of the provider coming in `NSchema 4.0.0.

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Jun 22:45
d509fe1

Fixed

  • The Postgres provider will now no-longer call CASCADE its DROP SCHEMA actions, to behave more consistently with other providers that do not support it.

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 20 Jun 22:47
bbfb680

Added

  • NSchemaApplicationBuilder.UseCurrentSchemaPostgres extension for registering only the Postgres SQL generator and not the provider.
  • Full coverage of NSchema.Core 3.0.0's domain model.

Changed

  • Breaking: Updated to NSchema 3.0.0, which includes many breaking changes to the core NSchema API.

Fixed

  • Removed trailing whitespace from generated SQL statements.

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 01 Jun 19:15
db91c05

Changed

  • Breaking: Updated to NSchema 2.0.0, which includes some breaking changes to the core NSchema API.
  • Breaking: The UsePostgres methods have been renamed to UseCurrentSchemaPostgres to be more explicit about what you're configuring.

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 27 May 20:43
74924f0

First stable release of the PostgreSQL provider for NSchema, tracking the 1.0 release of NSchema itself.

Added

  • UsePostgres(...) extensions on NSchemaApplicationBuilder for registering the provider — overloads for a connection string, an NpgsqlDataSourceBuilder configuration delegate, the same with IServiceProvider access, and a no-arg form for bring-your-own NpgsqlDataSource.
  • PostgresSchemaProviderISchemaProvider implementation that reads the live database via information_schema and pg_catalog, with optional schema-name scoping. Reads schemas, tables, columns, primary keys, foreign keys, indexes, comments (on schemas, tables, columns, and indexes), and GRANTs (on schemas and tables).
  • PostgresSqlPlannerISqlPlanner implementation that translates an NSchema MigrationPlan into PostgreSQL DDL.
  • SqlType.Citext and SqlType.Jsonb Postgres-specific type helpers on SqlType.
  • SourceLink and symbol packages (.snupkg) published alongside the main package for source-level debugging.