uranusjr commented on a change in pull request #22274:
URL: https://github.com/apache/airflow/pull/22274#discussion_r835730638
##########
File path: airflow/models/log.py
##########
@@ -30,8 +30,9 @@ class Log(Base):
id = Column(Integer, primary_key=True)
dttm = Column(UtcDateTime)
- dag_id = Column(String(ID_LEN, **COLLATION_ARGS))
- task_id = Column(String(ID_LEN, **COLLATION_ARGS))
+ dag_id = Column(StringID())
+ task_id = Column(StringID())
+ map_index = Column(Integer, server_default='-1')
Review comment:
Or we could just not have a default at all! The server_default was added
on some models to make migration faster, but that’s less of a goal here.
--
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]