Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Feature/84 deterministic ordering #143

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mvonballmo
Copy link

Description

Improve ordering of indexes, foreign keys, and columns to improve diffing between pulls from database copies running on different servers.

Checklist

Please ensure your pull request fulfills the following requirements:

  • The commit messages follow our guidelines (CONTRIBUTING.md).
  • Tests for any changes have been added (for bug fixes / features).
  • Docs have been added / updated (for bug fixes / features).

Type

What kind of change does this pull request introduce?

[x] Bug.
[ ] Feature.
[ ] Code style update (formatting, local variables).
[ ] Refactoring (no functional changes, no api changes).
[ ] Build related changes.
[ ] CI related changes.
[ ] Documentation content changes.
[ ] Other (please describe below).

Breaking Changes

Does this pull request introduce any breaking changes?

[ ] Yes
[x] No

Other Information

n/a

The former test verified only the cache, which failed when the output
changed, but it made it very difficult to see in the diff _why_ the
test had failed and _why_ the cache snapshot had changed.

This commit extends the test to verify the contents of each file to make
it easier to see what effect a change had on the actual SQL output.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant