houqp edited a comment on pull request #13278:
URL: https://github.com/apache/airflow/pull/13278#issuecomment-750483833


   @ashb because when running the tests, run_type are being written as string 
`'DagRunType.SCHEDULED'` into the db, so when it's queried using the same 
value, tests passed. We ran into this issue during upgrade because all of our 
old db rows have the column populated as string `'scheduled'`, which lead to 
crashes due to queries returning empty result.
   
   All existing 1.x mysql users using mysqlclient driver will run into this 
issue after performing the upgrade. New 2.0 mysql users might already have db 
populated with `'DagRunType.SCHEDULED'`, which needs manual fix up.
   
   I will prepare a test case to guard against this regression going forward.


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

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


Reply via email to