Skip to content

v3.2.0 - #71

Merged
chullybun merged 2 commits into
mainfrom
v3.2.0
Jul 31, 2026
Merged

v3.2.0#71
chullybun merged 2 commits into
mainfrom
v3.2.0

Conversation

@chullybun

Copy link
Copy Markdown
Collaborator

v3.2.0

  • Enhancement: The MigrationCommand.Execute has been enhanced to support the execution of YAML/JSON data files. Raw SQL must now be prefixed by > to explicity differentiate from a file path.
  • Enhancement: The MigrationCommand.Inspect has been enhanced to also report whether each column has been identified as a JSON column (i.e. DbColumnSchema.IsJson).

Enhanced MigrationCommand.Execute to support YAML/JSON data files, requiring '>' prefix for raw SQL. Updated docs, help text, and changelog. Improved error handling and logging. Schema inspection now shows JSON columns; unified JSON detection logic across DBs. Added SQL Server JSON support. Refactored and expanded migration tests, including YAML data seeding. Version bumped to 3.2.0.
Copilot AI review requested due to automatic review settings July 31, 2026 23:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps DbEx to v3.2.0 and updates the migration tooling to (1) allow Execute to run YAML/JSON data files in addition to SQL, and (2) extend Inspect output to include a JSON column indicator derived from DbColumnSchema.IsJsonContent.

Changes:

  • Enhanced MigrationCommand.Execute to accept file paths (SQL/YAML/JSON) and require raw SQL to be prefixed with >.
  • Extended Inspect markdown output to include a JSON column per database provider.
  • Updated tests/docs/changelog/versioning to reflect the new behaviors.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/DbEx.Test/SqlServerMigrationTest.cs Updates execute tests for the new > raw SQL prefix and adds a YAML execution test.
tests/DbEx.Test/Resources/SqlServerInspect.md Updates expected Inspect output to include the JSON column.
tests/DbEx.Test/Resources/PostgresInspect.md Updates expected Inspect output to include the JSON column.
tests/DbEx.Test/Resources/MySqlInspect.md Updates expected Inspect output to include the JSON column.
tests/DbEx.Test/DbEx.Test.csproj Ensures Data.yaml is copied to test output for execution tests.
tests/DbEx.Test/Data.yaml Adds YAML seed data used by the new Execute YAML test.
src/DbEx/Migration/DatabaseMigrationBase.cs Implements Execute support for YAML/JSON files, updates execute messaging, adds JSON column to Inspect output, and improves command error handling.
src/DbEx/Console/MigrationConsoleBase.cs Updates CLI help text for Execute’s additional args.
src/DbEx.SqlServer/SqlServerSchemaConfig.cs Improves JSON content detection and maps JSON type to string.
src/DbEx.Postgres/PostgresSchemaConfig.cs Fixes JSON content detection logic to use DotNetType.
src/DbEx.MySql/MySqlSchemaConfig.cs Fixes JSON content detection logic to use DotNetType.
README.md Updates Execute command documentation to explain > raw SQL prefix and YAML/JSON support.
Common.targets Bumps version to 3.2.0.
CHANGELOG.md Adds v3.2.0 entries describing the new Execute/Inspect enhancements.
Suppressed comments (1)

CHANGELOG.md:7

  • The changelog references DbColumnSchema.IsJson, but the actual property is DbColumnSchema.IsJsonContent. This makes the entry misleading for users trying to find/consume the feature.
- *Enhancement:* The `MigrationCommand.Inspect` has been enhanced to also report whether each column has been identified as a JSON column (i.e. `DbColumnSchema.IsJson`).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/DbEx/Console/MigrationConsoleBase.cs Outdated
Comment thread README.md Outdated
Comment thread CHANGELOG.md Outdated
Comment thread tests/DbEx.Test/Data.yaml Outdated
Comment thread tests/DbEx.Test/SqlServerMigrationTest.cs Outdated
Comment thread src/DbEx/Migration/DatabaseMigrationBase.cs
@chullybun
chullybun merged commit 38e9c8a into main Jul 31, 2026
3 of 4 checks passed
@chullybun
chullybun deleted the v3.2.0 branch July 31, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants