diff --git a/airflow/migrations/versions/587bdf053233_adding_index_for_dag_id_in_job.py b/airflow/migrations/versions/587bdf053233_adding_index_for_dag_id_in_job.py index 3532fe9e8df14..c643a6298442a 100644 --- a/airflow/migrations/versions/587bdf053233_adding_index_for_dag_id_in_job.py +++ b/airflow/migrations/versions/587bdf053233_adding_index_for_dag_id_in_job.py @@ -19,7 +19,7 @@ """adding index for dag_id in job Revision ID: 587bdf053233 -Revises: f9da662e7089 +Revises: c381b21cb7e4 Create Date: 2021-12-14 10:20:12.482940 """ @@ -28,7 +28,7 @@ # revision identifiers, used by Alembic. revision = '587bdf053233' -down_revision = 'f9da662e7089' +down_revision = 'c381b21cb7e4' branch_labels = None depends_on = None diff --git a/airflow/migrations/versions/5e3ec427fdd3_increase_length_of_email_and_username.py b/airflow/migrations/versions/5e3ec427fdd3_increase_length_of_email_and_username.py index ea10a2ff2c4bb..bd78fdd28af9b 100644 --- a/airflow/migrations/versions/5e3ec427fdd3_increase_length_of_email_and_username.py +++ b/airflow/migrations/versions/5e3ec427fdd3_increase_length_of_email_and_username.py @@ -19,7 +19,7 @@ """Increase length of email and username Revision ID: 5e3ec427fdd3 -Revises: c381b21cb7e4 +Revises: 587bdf053233 Create Date: 2021-12-01 11:49:26.390210 """ @@ -29,7 +29,7 @@ # revision identifiers, used by Alembic. revision = '5e3ec427fdd3' -down_revision = 'c381b21cb7e4' +down_revision = '587bdf053233' branch_labels = None depends_on = None diff --git a/airflow/migrations/versions/e655c0453f75_add_taskmap_and_map_id_on_taskinstance.py b/airflow/migrations/versions/e655c0453f75_add_taskmap_and_map_id_on_taskinstance.py index 1b7b9266e1973..f7aca8250a262 100644 --- a/airflow/migrations/versions/e655c0453f75_add_taskmap_and_map_id_on_taskinstance.py +++ b/airflow/migrations/versions/e655c0453f75_add_taskmap_and_map_id_on_taskinstance.py @@ -19,7 +19,7 @@ """Add TaskMap and map_index on TaskInstance. Revision ID: e655c0453f75 -Revises: 587bdf053233 +Revises: f9da662e7089 Create Date: 2021-12-13 22:59:41.052584 """ @@ -31,7 +31,7 @@ # Revision identifiers, used by Alembic. revision = "e655c0453f75" -down_revision = "587bdf053233" +down_revision = "f9da662e7089" branch_labels = None depends_on = None diff --git a/docs/apache-airflow/migrations-ref.rst b/docs/apache-airflow/migrations-ref.rst index 7f79e60a1cd04..c1d090f4d62ca 100644 --- a/docs/apache-airflow/migrations-ref.rst +++ b/docs/apache-airflow/migrations-ref.rst @@ -25,18 +25,18 @@ Here's the list of all the Database Migrations that are executed via when you ru +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ | ``a3bcd0914482`` (head) | ``e655c0453f75`` | ``2.3.0`` | Add ``data_compressed`` to serialized_dag and make data column nullable. | +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ -| ``e655c0453f75`` | ``587bdf053233`` | ``2.3.0`` | Add ``map_index`` column to TaskInstance to identify task-mapping, and a ``task_map`` | +| ``e655c0453f75`` | ``f9da662e7089`` | ``2.3.0`` | Add ``map_index`` column to TaskInstance to identify task-mapping, and a ``task_map`` | | | | | table to track mapping values from XCom. | +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ -| ``587bdf053233`` | ``f9da662e7089`` | ``2.3.0`` | Add index for ``dag_id`` column in ``job`` table. | -+--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ | ``f9da662e7089`` | ``786e3737b18f`` | ``2.3.0`` | Add ``LogTemplate`` table to track changes to config values ``log_filename_template`` | +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ | ``786e3737b18f`` | ``5e3ec427fdd3`` | ``2.3.0`` | Add ``timetable_description`` column to DagModel for UI. | +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ -| ``5e3ec427fdd3`` | ``c381b21cb7e4`` | ``2.3.0`` | Increase length of email and username in ``ab_user`` and ``ab_register_user`` table | +| ``5e3ec427fdd3`` | ``587bdf053233`` | ``2.3.0`` | Increase length of email and username in ``ab_user`` and ``ab_register_user`` table | | | | | to ``256`` characters | +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ +| ``587bdf053233`` | ``c381b21cb7e4`` | ``2.2.4`` | Add index for ``dag_id`` column in ``job`` table. | ++--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ | ``c381b21cb7e4`` | ``be2bfac3da23`` | ``2.2.4`` | Create a ``session`` table to store web session data | +--------------------------------+------------------+-----------------+---------------------------------------------------------------------------------------+ | ``be2bfac3da23`` | ``7b2661a43ba3`` | ``2.2.3`` | Add has_import_errors column to DagModel |