You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/11/24 10:42:38 UTC

[GitHub] [airflow] ashb commented on a diff in pull request #27886: Explicitly name the primary keys in ORM for task & dagrun notes table

ashb commented on code in PR #27886:
URL: https://github.com/apache/airflow/pull/27886#discussion_r1031360299


##########
airflow/models/dagrun.py:
##########
@@ -1314,7 +1314,7 @@ class DagRunNote(Base):
     __tablename__ = "dag_run_note"
 
     user_id = Column(Integer, nullable=True)
-    dag_run_id = Column(Integer, primary_key=True, nullable=False)
+    dag_run_id = Column(Integer, primary_key=True, name="dag_run_note_pkey", nullable=False)

Review Comment:
   Does this work?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org