-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Update all models to use sqlalchemy 2 annotations
#55954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3713477 to
6b26260
Compare
4880099 to
5da471b
Compare
5da471b to
513c389
Compare
...ow-core/src/airflow/migrations/versions/0088_3_2_0_add_length_dag_bundle_team_bundle_name.py
Show resolved
Hide resolved
ashb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: do we need to continue supporting SQLA1, or can we "simply" switch to 2.x and update the syntax at the same time?
In order to switch to SQLA2 we need 2 things (the 2nd point can be split in 2, so let's say 3 points):
We need to complete all these things in order to switch to SQLA2 so no I do not think and should not do that in the same PR. |
9f1ac41 to
805f1db
Compare
805f1db to
cea049f
Compare
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
…5954)" (apache#56296) This reverts commit 3150430.
|
This PR was reverted because it made the CI fail. I finally could fix it and is available here: #56330. Any review is appreciated :) |
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
…5954)" (apache#56296) This reverts commit 3150430.
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
…5954)" (apache#56296) This reverts commit 3150430.
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
…traints (apache#56330) * Update all models to use `sqlalchemy` 2 annotations (apache#55954) * Fix NULL constraints
Update all models to use
sqlalchemy2 annotations. Keep it also backward compatible with SQLA 1.This is required to switch to
sqlalchemy2.^ 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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.