ashb edited a comment on pull request #18439:
URL: https://github.com/apache/airflow/pull/18439#issuecomment-925826422
I feel uneasy about automatically running migrations for non-automated
approaches.
What I propse we do is:
- When connected to a TTY: prompt the user if they want to run migrations if
there are any outstanding
> There are outstanding db migrations. Do you wish to run them now N/y?
- When not connected to a TTY (i.e. a daemon or non-attached container for
instance) just error.
That feels much safer than automatically running a potential long migration
when the user isn't expecting -- doubly so in the case of MySQL where DDL etc
is non transactional so the process can't even be safely interrupted!
--
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]