Repository navigation
Conversation
Read the comments of the source and emit them on the target: COMMENT ON for PostgreSQL, the MS_Description property for MSSQL.
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #39 +/- ##
==========================================
+ Coverage 92.24% 92.50% +0.25%
==========================================
Files 79 79
Lines 3225 3347 +122
==========================================
+ Hits 2975 3096 +121
- Misses 250 251 +1
🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The comments of the source schemas, tables and columns were lost. They are now copied to the target, in dump and migrate modes.
MS_Description)The PostgreSQL target gets
COMMENT ON. The MSSQL target getssp_addextendedproperty, orsp_updateextendedpropertyfor a schema that already has a description (dbo).Type of change
feat:)How was this tested?
pytest tests/unit tests/cli: 641 passed, 12 new testslint-imports: 2 contracts keptmainalready has in the SQLite reader.tests/functional: not run, no DockerManual check on PostgreSQL 15: dump,
psql -f, thenmigrate. The comments are in the target. The MSSQL output was not run on a server.Notes for the reviewer
public(standard public schema) is not copied: only the owner of a schema can comment on it.schema_mapping, when several source schemas map to one target, the first comment wins.--on-existing truncate.