Repository navigation
feat: Support lossless JSON <-> JSONB column type migration - #4989
Merged
marcelomendoncasoares merged 7 commits intoApr 24, 2026
Merged
marcelomendoncasoares merged 7 commits into
marcelomendoncasoares merged 7 commits into
Conversation
marcelomendoncasoares
requested changes
Apr 23, 2026
marcelomendoncasoares
left a comment
Collaborator
There was a problem hiding this comment.
Nice work, @developerjamiu! Changes are in the right places and the feature is well covered. Have just some small comments for improvement, mainly on the tests.
developerjamiu
force-pushed
the
feat/json-jsonb-migration
branch
from
April 23, 2026 15:32
a8ca54b to
cac4b02
Compare
marcelomendoncasoares
requested changes
Apr 24, 2026
marcelomendoncasoares
left a comment
Collaborator
There was a problem hiding this comment.
Only two more small improvements to the tests and we're good to go!
marcelomendoncasoares
approved these changes
Apr 24, 2026
marcelomendoncasoares
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Great work with this feature, @developerjamiu!! 🚀
Contributor
Author
Thank you 🙌 |
developerjamiu
force-pushed
the
feat/json-jsonb-migration
branch
from
April 24, 2026 03:40
82d4135 to
2df6bf4
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Adds lossless JSON ↔ JSONB column type migration support. When a developer changes a serializable field between
jsonandjsonb, the migration engine now emits cast-based SQL instead of dropping and recreating the table.Split from PR #4960 per reviewer suggestion. Refs #3919.
PostgreSQL:
SQLite (during table rebuild):
Behavior:
--forcerequired - the migration is losslessCloses #4985
Pre-launch Checklist
///).Breaking changes
None.