vincbeck commented on code in PR #56330:
URL: https://github.com/apache/airflow/pull/56330#discussion_r2433207975


##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -2115,11 +2122,13 @@ class DagRunNote(Base):
 
     __tablename__ = "dag_run_note"
 
-    user_id = Column(String(128), nullable=True)
-    dag_run_id = Column(Integer, primary_key=True, nullable=False)
-    content = Column(String(1000).with_variant(Text(1000), "mysql"))
-    created_at = Column(UtcDateTime, default=timezone.utcnow, nullable=False)
-    updated_at = Column(UtcDateTime, default=timezone.utcnow, 
onupdate=timezone.utcnow, nullable=False)
+    user_id: Mapped[str | None] = mapped_column(String(128), nullable=True)
+    dag_run_id: Mapped[int] = mapped_column(Integer, primary_key=True, 
nullable=False)
+    content: Mapped[str] = mapped_column(String(1000).with_variant(Text(1000), 
"mysql"))

Review Comment:
   Good catch! Thanks for the debugging. I was really banging my head against 
the wall with this issue. I updated the PR, let's see at the CI result



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to