Skip to content

Sort triggers, indexes, and check constraints for deterministic output - #12

Merged
boserh merged 2 commits into
mainfrom
fix/sort-triggers-indexes-constraints
Jul 24, 2026
Merged

Sort triggers, indexes, and check constraints for deterministic output#12
boserh merged 2 commits into
mainfrom
fix/sort-triggers-indexes-constraints

Conversation

@boserh

@boserh boserh commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Fixes spurious annotation diffs caused by non-deterministic ordering of triggers, indexes, and check constraints returned from the database.

Changes:

  • Sort triggers alphabetically by name
  • Sort indexes by name before formatting
  • Sort check constraints by name before formatting

boserh added 2 commits July 24, 2026 20:04
Ensures annotations don't produce spurious diffs due to non-deterministic
ordering of triggers, indexes, and check constraints from the database.
@boserh
boserh force-pushed the fix/sort-triggers-indexes-constraints branch from fff8603 to 057410b Compare July 24, 2026 17:05
@boserh
boserh merged commit 9524171 into main Jul 24, 2026
4 checks passed
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