iting0321 opened a new pull request, #64838:
URL: https://github.com/apache/airflow/pull/64838
## What
This change makes SQLite foreign-key teardown in Alembic migrations reliable
by using a shared context-managed helper that always restores PRAGMA
foreign_keys=ON, even if a migration fails midway. It also updates existing
migrations to use the helper and adds regression tests.
## Why:
To prevent SQLite connections from being left with foreign keys disabled
after a failed migration, which can cause follow-up operations to behave
incorrectly.
**Was generative AI tooling used to co-author this PR?**
- [x] Yes (please specify the tool below) Claude Code following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]