potiuk opened a new issue #18323:
URL: https://github.com/apache/airflow/issues/18323


   ### 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. SQLAlchemy 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?
   
   - [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