Skip to content

Fix routine diff handling and update docs#10

Merged
bitner merged 2 commits into
mainfrom
fix/funcchanges
May 12, 2026
Merged

Fix routine diff handling and update docs#10
bitner merged 2 commits into
mainfrom
fix/funcchanges

Conversation

@bitner
Copy link
Copy Markdown
Owner

@bitner bitner commented May 12, 2026

This PR improves makemigration for routine changes:

  • emits CREATE OR REPLACE SQL for body-only function/procedure updates that results.schemadiff_as_sql() can miss
  • avoids suppressing unsafe routine drops unless the same routine kind and signature still exist in the target schema
  • adds regression coverage for the diff helpers and routine body-only changes
  • updates README, CLI docs, architecture notes, and changelog

Validation:

  • uv run pytest -q tests/unit tests/integration/test_diff.py tests/integration/test_executor.py tests/integration/test_tracking.py tests/integration/test_wrapper_end_to_end.py

@bitner bitner merged commit aaa444f into main May 12, 2026
19 checks passed
@bitner bitner deleted the fix/funcchanges branch May 12, 2026 15:18
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