Compare-DbaDbSchema - Add new command for schema comparison via sqlpackage#10299
Compare-DbaDbSchema - Add new command for schema comparison via sqlpackage#10299andreasjordan wants to merge 4 commits intodevelopmentfrom
Conversation
…ckage Implements Compare-DbaDbSchema using sqlpackage's DeployReport action to compare a source DACPAC against a target database or DACPAC file, returning structured schema difference objects. Closes #5342 (do Compare-DbaDbSchema) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
|
@claude tests fail. Output: |
|
Claude finished @andreasjordan's task in 1m 50s —— View job Fixed test failures
Two bugs fixed in
|
- Add /tdn: argument when comparing two DACPAC files (sqlpackage requires a target database name even for offline DACPAC-to-DACPAC comparisons) - Strip 'Sql' prefix from Type field (sqlpackage returns 'SqlTable' etc. but 'Table' is cleaner for end users and matches test expectations) (do Compare-DbaDbSchema) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
|
@claude tests fail. Output: |
|
Claude finished @andreasjordan's task in 1m 45s —— View job Fixed remaining test failures
Root cause: Test state pollution — the "Returns no differences" test calls Fix ( |
…get DACPAC in BeforeAll Export the empty target DB to a DACPAC in the shared BeforeAll block before any tests can modify the target DB (via Publish-DbaDacPackage). This prevents the DACPAC-to-DACPAC comparison tests from getting zero differences because the target DB was already populated by the 'Returns no differences' test. (do Compare-DbaDbSchema) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
Implements
Compare-DbaDbSchemausing sqlpackage's DeployReport action to compare a source DACPAC against a target database or DACPAC file, returning structured schema difference objects.Closes #5342
Generated with Claude Code