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 model loading order of DagRunNote vs User #35614

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion airflow/models/dagrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

from airflow import settings
from airflow.api_internal.internal_api_call import internal_api_call
from airflow.auth.managers.fab.models import User
from airflow.callbacks.callback_requests import DagCallbackRequest
from airflow.configuration import conf as airflow_conf
from airflow.exceptions import AirflowException, RemovedInAirflow3Warning, TaskNotFound
Expand Down Expand Up @@ -1489,7 +1490,7 @@ class DagRunNote(Base):

user_id = Column(
Integer,
ForeignKey("ab_user.id", name="dag_run_note_user_fkey"),
ForeignKey(User.id, name="dag_run_note_user_fkey"),
nullable=True,
)
dag_run_id = Column(Integer, primary_key=True, nullable=False)
Expand Down
Loading