-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
airflow/airflow-core/src/airflow/migrations/versions/0068_3_0_0_ti_table_id_unique_per_try.py
Line 120 in a1aa273
| sa.Column("task_instance_id", UUIDType(binary=False), autoincrement=False, nullable=False) |
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?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct