Skip to content

Fix SQLite downgrade failures caused by FK constraints during batch table recreation - #63437

Merged
vatsrahul1001 merged 5 commits into
apache:mainfrom
astronomer:fix-sqlite-migration
Mar 17, 2026
Merged

vatsrahul1001 merged 5 commits into
apache:mainfrom
astronomer:fix-sqlite-migration

Conversation

@vatsrahul1001

Copy link
Copy Markdown
Contributor

Added the SQLite FK pragma guard fir multiple migrations

Testing
Downgrade works fine now with SQLite

image
  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@vatsrahul1001
vatsrahul1001 requested a review from Lee-W March 12, 2026 11:38
@vatsrahul1001
vatsrahul1001 requested a review from Lee-W March 12, 2026 15:02

@Lee-W Lee-W left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need this for the upgrade?

@vatsrahul1001
vatsrahul1001 requested a review from Lee-W March 16, 2026 13:06
@vatsrahul1001

Copy link
Copy Markdown
Contributor Author

Don't we need this for the upgrade?

Thanks done

@Lee-W Lee-W left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits, but overall looks good

@vatsrahul1001
vatsrahul1001 merged commit c8dd357 into apache:main Mar 17, 2026
8 checks passed
@vatsrahul1001
vatsrahul1001 deleted the fix-sqlite-migration branch March 17, 2026 10:13
abhijeets25012-tech pushed a commit to abhijeets25012-tech/airflow that referenced this pull request Apr 9, 2026
…able recreation (apache#63437)

* Fix SQLite downgrade failures caused by FK constraints during batch table recreation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downgrade from 3.2 is broken with SQlite

3 participants