Description
We had recently a number of questions from users who did not run airflow db upgrade and run airflow and it was failing because of missing columns etc.
It was not entirely clear for new users that they should do it and I am fixing it in #18282 , however I think we should do better
Use case/motivation
I think we should check what migration is currently applied and fail any Airflow command that requires the DB hard with clear information that the DB is not migrated and what to do.
This should be rather easy, I think. Alembic keeps track of the migration and I believe it has already all the tools to determine "current migration" vs. "expected migration".
Related issues
#18282
Are you willing to submit a PR?
Code of Conduct
Description
We had recently a number of questions from users who did not run
airflow db upgradeand run airflow and it was failing because of missing columns etc.It was not entirely clear for new users that they should do it and I am fixing it in #18282 , however I think we should do better
Use case/motivation
I think we should check what migration is currently applied and fail any Airflow command that requires the DB hard with clear information that the DB is not migrated and what to do.
This should be rather easy, I think. Alembic keeps track of the migration and I believe it has already all the tools to determine "current migration" vs. "expected migration".
Related issues
#18282
Are you willing to submit a PR?
Code of Conduct