Skip to content

Fix migration 0096 downgrade failing when team table has rows#63449

Merged
vatsrahul1001 merged 1 commit intoapache:mainfrom
astronomer:fix/0096-downgrade-team-id-not-null
Mar 12, 2026
Merged

Fix migration 0096 downgrade failing when team table has rows#63449
vatsrahul1001 merged 1 commit intoapache:mainfrom
astronomer:fix/0096-downgrade-team-id-not-null

Conversation

@vatsrahul1001
Copy link
Contributor

The downgrade() in 0096_3_2_0_remove_team_id.py tries to ADD COLUMN id VARCHAR(36) NOT NULL on the team table without providing a default or populating existing rows first.

Testing
image

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    Claude
  • 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.

@boring-cyborg boring-cyborg bot added the area:db-migrations PRs with DB migration label Mar 12, 2026
Copy link
Contributor

@vincbeck vincbeck left a comment

Choose a reason for hiding this comment

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

My bad! Thanks for the fix

@vatsrahul1001 vatsrahul1001 merged commit a587d64 into apache:main Mar 12, 2026
73 checks passed
@vatsrahul1001 vatsrahul1001 deleted the fix/0096-downgrade-team-id-not-null branch March 12, 2026 15:45
Pyasma pushed a commit to Pyasma/airflow that referenced this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:db-migrations PRs with DB migration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

airflow db downgrade fails on migration 0096 when team table has data

2 participants