Skip to content

feat: Enhance check constraint handling in migration generator#430

Open
dwirz wants to merge 1 commit intomainfrom
fix/correctly-check-existing-constraints
Open

feat: Enhance check constraint handling in migration generator#430
dwirz wants to merge 1 commit intomainfrom
fix/correctly-check-existing-constraints

Conversation

@dwirz
Copy link
Member

@dwirz dwirz commented Mar 3, 2026

  • Implemented canonicalization of check constraint expressions to avoid unnecessary migrations for semantically equivalent expressions.
  • Added logging for cases where canonicalization fails, treating the constraint as changed to ensure accurate migration reporting.
  • Introduced new methods for checking existing constraints and normalizing expressions, improving the migration generator's robustness.
  • Added unit tests to validate the new functionality and ensure correct behavior in various scenarios.

- Implemented canonicalization of check constraint expressions to avoid unnecessary migrations for semantically equivalent expressions.
- Added logging for cases where canonicalization fails, treating the constraint as changed to ensure accurate migration reporting.
- Introduced new methods for checking existing constraints and normalizing expressions, improving the migration generator's robustness.
- Added unit tests to validate the new functionality and ensure correct behavior in various scenarios.
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