Skip to content

Fix recreating autoincrement sequence in callback table migration (#65000)#65224

Open
holmuk wants to merge 1 commit intoapache:mainfrom
holmuk:bugfix/migration-downgrade-autoincrement
Open

Fix recreating autoincrement sequence in callback table migration (#65000)#65224
holmuk wants to merge 1 commit intoapache:mainfrom
holmuk:bugfix/migration-downgrade-autoincrement

Conversation

@holmuk
Copy link
Copy Markdown
Contributor

@holmuk holmuk commented Apr 14, 2026

closes: #65000

The problem is that 0093_3_2_0_restructure_callback_table.py migration doesn't recreate the auto-increment sequence linked to callback_request.id column during downgrade.

This PR fixes the issue:

  • PostgreSQL: Create the auto-increment sequence for callback_request.id column and link it with the sequence.
  • MySQL: Restore auto-increment after the table was renamed.

  • 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.

@holmuk holmuk requested a review from ephraimbuddy as a code owner April 14, 2026 15:25
@boring-cyborg boring-cyborg bot added the area:db-migrations PRs with DB migration label Apr 14, 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.

DB downgrade does not downgrade correctly autoincrement column

1 participant