MASTREX opened a new issue, #54071:
URL: https://github.com/apache/airflow/issues/54071

   ### Apache Airflow version
   
   main (development)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   
https://github.com/apache/airflow/blob/a1aa2732bf2b5d9c0ba694fa1b3f47cdcb12cca9/airflow-core/src/airflow/migrations/versions/0068_3_0_0_ti_table_id_unique_per_try.py#L120
   
   While downgrading my airflow version from v3.0.0 to v2.10.4 I have facing an 
error on line
   `ALTER TABLE task_instance_history ADD COLUMN task_instance_id UUID NOT NULL`
   
   This mapped to above code which seem to add a column with not null property
   
   This has failed as the table already contains some data and adding a new 
column with no data is not possible
   
   (Sorry cant include any log or screenshot as it happened on my work laptop)
   
   ### What you think should happen instead?
   
   Downgrade to be reversible and symmetrical
   
   ### How to reproduce
   
   Do the downgrade when data exist in `task_instance_history` table
   
   ### Operating System
   
   rhel9
   
   ### Versions of Apache Airflow Providers
   
   (probably not required)
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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