You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of this, also replace the usage of TI.execution_date to TI.run_id in the entire codebase.
Add a check *BEFORE any migrations are run to ensure that there are no missing DagRuns for a TaskInstance and vice-versa, and that a user is not left with a DB version "part-way" between two Airflow versions.
The text was updated successfully, but these errors were encountered:
kaxil
changed the title
DB migration: TaskInstance table from execution_date to run_id
DB migration: TaskInstance tables from execution_date to run_idJun 7, 2021
Create a migration for the following tables to use
dag_run.run_id
instead ofexecution_date
. Removeexecution_date
from theprimary_key
too.Use SQLAlchemy's Association proxy (https://docs.sqlalchemy.org/en/13/orm/extensions/associationproxy.html) for keeping backwards compatibility for execution_date.
As part of this, also replace the usage of TI.execution_date to TI.run_id in the entire codebase.
Add a check *BEFORE any migrations are run to ensure that there are no missing DagRuns for a TaskInstance and vice-versa, and that a user is not left with a DB version "part-way" between two Airflow versions.
The text was updated successfully, but these errors were encountered: