Skip to content

Failure while downgrading from v3.0.0 to v2.x.x (Revision ID: 29ce7909c52b) #54071

@MASTREX

Description

@MASTREX

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions