potiuk commented on PR #31662: URL: https://github.com/apache/airflow/pull/31662#issuecomment-1586108091
> @uranusjr since there is a new field added to `TaskInstance` class which requires a new column to be created in `TaskInstance` table. I think this would be a breaking change, right? Do we have something that does database migration similar to [Django migrations](https://docs.djangoproject.com/en/4.2/topics/migrations/)? if so, we can add a default value so that the database migrations can be smooth for existing TaskInstance. We have alembic. You can see the docs about addin new migrations (look for alembic) and you can also take a look at past prs that added migrations to `airflow\migrations`. Also worth looking at the `airflow db` command and all their subcommands and https://airflow.apache.org/docs/apache-airflow/stable/migrations-ref.html -- 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]
