Skip to content

Conversation

@ramitkataria
Copy link
Contributor

  • In some databases like MySQL, setting the primary key constraint while adding the column seems to not work as expected. So, this fixes that by setting the primary key constraint after the column creation statement.
  • There was a mismatch in the nullable property of the data column in the callback model. This sets the property to be non-nullable in both the migration script and the model.

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

- In some databases like MySQL, setting the primary key constraint while
adding the column seems to not work as expected. So, this fixes that by
setting the primary key constraint after the column creation statement.
- There was a mismatch in the nullable property of the `data` column in
the callback model. This sets the property to be non-nullable in both
the migration script and the model.
@vincbeck vincbeck merged commit 5d1f3b5 into apache:main Nov 5, 2025
65 checks passed
@vincbeck vincbeck deleted the ramitkataria/fix-cb-migration branch November 5, 2025 15:02
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
…pache#57836)

- In some databases like MySQL, setting the primary key constraint while
adding the column seems to not work as expected. So, this fixes that by
setting the primary key constraint after the column creation statement.
- There was a mismatch in the nullable property of the `data` column in
the callback model. This sets the property to be non-nullable in both
the migration script and the model.
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.

4 participants