Default value for clear_number column not applied via sqlalchemy #34332
Labels
affected_version:main_branch
Issues Reported for main branch
area:MetaDB
Meta Database related issues.
kind:bug
This is a clearly a bug
Apache Airflow version
main (development)
What happened
The SQL query generated does not have a default integer as 0 in the migration causing failure.
SQLAlchemy version was 1.4.49.
What you think should happen instead
The query generated should be
ALTER TABLE dag_run ADD COLUMN clear_number INTEGER NOT NULL DEFAULT 0;
How to reproduce
Upgraded from airflow 2.7.1 to main-branch and ran
airflow db migrate
Operating System
MacOS 13
Versions of Apache Airflow Providers
Not applicable
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: