GitHub user sowmyachitti edited a discussion: Issue with downgrade from 3.0.0 
to 2.10.3

Initially used pip install apache-airflow and then later realized our dag is 
incompatible with 3.0.0 so then used pip install apache-airflow ==2.10.3 and 
does airflow db downgrade —to-version 2.10.3 -y


The dag code was compatible till 2.10.3 version   Now when I try to reinstall 
the 2.10.3 I get below error 


``Unable to import at 
0027_2_10_3_fix_dag_schedule_dataset_alias_reference_naming.py

ImportError: cannot import name ‘mysql_drop_foreignkey_if_exits’ from 
‘airflow.migration.utils’
``

initial diagnosis : observed that utils.py have that function in 3.0.0 but when 
I downgrade it still searches for that function which don’t exists in utils.py

GitHub link: https://github.com/apache/airflow/discussions/49722

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to