Skip to content

Allow schema changes in diffs#252

Open
dvdkon wants to merge 21 commits into
MerginMaps:masterfrom
dvdkon:schema-diff
Open

Allow schema changes in diffs#252
dvdkon wants to merge 21 commits into
MerginMaps:masterfrom
dvdkon:schema-diff

Conversation

@dvdkon
Copy link
Copy Markdown
Contributor

@dvdkon dvdkon commented May 22, 2026

Currently we raise an error if the two databases being compared don't share the same schema. This PR adds new changeset entries and new code to work with databases with different schemata, capturing those schema differences in diffs.

Currently missing:

  • Decide on rebase conflict reporting (JSON vs exceptions).
  • Add documentation on new entries, diffing principles, and limitations.
  • Postgres support (likely in separate PR)

dvdkon added 13 commits May 16, 2026 11:27
Previously when reading entries, there was only one instance of
ChangesetTable kept inside the reader, which would get overwritten on a
new entry. This is fast when processing entries sequentially, but
complicates/slows down the not-uncommon case of keeping entries around
for longer.
Assisted-by: Claude Sonnet 4.6
We now explicitly support these schema changes.
@dvdkon dvdkon force-pushed the schema-diff branch 3 times, most recently from 8e8314a to bc952ea Compare May 22, 2026 10:54
dvdkon added 6 commits May 22, 2026 13:26
The previously unsupported change is now supported.
Assisted-by: Claude Sonnet 4.6
Assisted-by: Claude Sonnet 4.6
Assisted-by: Claude Sonnet 4.6
@dvdkon dvdkon marked this pull request as ready for review May 26, 2026 11:03
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.

1 participant