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/01/17 14:40:06 UTC

[GitHub] [airflow] ashb commented on a change in pull request #20902: Switch map_index back to use server_default

ashb commented on a change in pull request #20902:
URL: https://github.com/apache/airflow/pull/20902#discussion_r786066324



##########
File path: airflow/models/taskinstance.py
##########
@@ -343,7 +344,7 @@ class TaskInstance(Base, LoggingMixin):
     task_id = Column(String(ID_LEN, **COLLATION_ARGS), primary_key=True, nullable=False)
     dag_id = Column(String(ID_LEN, **COLLATION_ARGS), primary_key=True, nullable=False)
     run_id = Column(String(ID_LEN, **COLLATION_ARGS), primary_key=True, nullable=False)
-    map_index = Column(Integer, primary_key=True, nullable=False, default=-1)
+    map_index = Column(Integer, primary_key=True, nullable=False, server_default=text("-1"))

Review comment:
       This one can possibly have default and server_default.




-- 
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