Skip to content
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

fix(migration): fix dataset to asset migration typo #43245

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Oct 22, 2024

Closes: #43226

Why

dsdar_dataset_alias_fkey was accidentally named as dsdar_dataset_fkey in migration files


^ 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 newsfragments.

@boring-cyborg boring-cyborg bot added the area:db-migrations PRs with DB migration label Oct 22, 2024
@Lee-W Lee-W force-pushed the fix-dataset-to-asset-migration-typo branch from c6413e0 to e658a93 Compare October 22, 2024 02:51
@Lee-W Lee-W requested a review from potiuk as a code owner October 22, 2024 02:51
@Lee-W Lee-W force-pushed the fix-dataset-to-asset-migration-typo branch 3 times, most recently from db96b28 to 7365f9c Compare October 22, 2024 07:59
@Lee-W Lee-W self-assigned this Oct 22, 2024
@Lee-W Lee-W mentioned this pull request Oct 22, 2024
2 tasks
@bbovenzi
Copy link
Contributor

bbovenzi commented Oct 22, 2024

Why is it dataset_alias and not asset_alias?

Also running airflow db migrate locally, I run into constraint "dsdar_dag_id_fkey" of relation "dag_schedule_asset_alias_reference" does not exist. Not sure if it might be related?

@Lee-W
Copy link
Member Author

Lee-W commented Oct 23, 2024

Why is it dataset_alias and not asset_alias?

Those are fks from Airflow 2.10 that we need to rename.

Also running airflow db migrate locally, I run into constraint "dsdar_dag_id_fkey" of relation "dag_schedule_asset_alias_reference" does not exist. Not sure if it might be related?

Thanks for reminding me! There's yet another issue, but somewhat related. Fixed in this PR

@Lee-W Lee-W force-pushed the fix-dataset-to-asset-migration-typo branch from 7365f9c to bf2fa09 Compare October 23, 2024 00:22
Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

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

This should be backported, right?

@Lee-W
Copy link
Member Author

Lee-W commented Oct 23, 2024

This should be backported, right?

0026 yes, 0040 no

@Lee-W Lee-W force-pushed the fix-dataset-to-asset-migration-typo branch from bf2fa09 to 628fcf9 Compare October 23, 2024 01:29
@Lee-W Lee-W merged commit 7bcd84b into apache:main Oct 23, 2024
52 checks passed
@Lee-W Lee-W deleted the fix-dataset-to-asset-migration-typo branch October 23, 2024 06:16
@Lee-W
Copy link
Member Author

Lee-W commented Oct 23, 2024

backport pr #43314

harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
* fix(migration): fix dataset to asset migration typo

* fix(migrations): dsdar_dag_id_fkey was accidentally named as dsdar_dag_fkey. thus, we need to use dsdar_dag_fkey in migration files
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
* fix(migration): fix dataset to asset migration typo

* fix(migrations): dsdar_dag_id_fkey was accidentally named as dsdar_dag_fkey. thus, we need to use dsdar_dag_fkey in migration files
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
* fix(migration): fix dataset to asset migration typo

* fix(migrations): dsdar_dag_id_fkey was accidentally named as dsdar_dag_fkey. thus, we need to use dsdar_dag_fkey in migration files
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.

"breeze start-airflow" failing on main branch
3 participants