Skip to content

Commit 2c9bf02

Browse files
committed
feat(patch): update migration patch to 3.0.2 version
1 parent ee7506d commit 2c9bf02

13 files changed

+2605
-1236
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ ENV PATH="/app/.venv/bin:$PATH"
3737

3838
COPY airflow.cfg ${AIRFLOW_HOME}/airflow.cfg
3939
COPY --chown=airflow:root dags ${AIRFLOW_HOME}/dags
40-
# TODO: remove this and the patch files once upgrade to 2.11.1
41-
COPY --chown=airflow:root patch /app/.venv/lib/python3.10/site-packages/airflow/migrations
40+
# TODO: remove this and the patch files once upgrade to 3.0.3
41+
COPY --chown=airflow:root patch/utils.py /app/.venv/lib/python3.10/site-packages/airflow/migrations/utils.py
42+
COPY --chown=airflow:root patch/versions /app/.venv/lib/python3.10/site-packages/airflow/migrations/versions
43+
COPY --chown=airflow:root patch/serialized_objects.py /app/.venv/lib/python3.10/site-packages/airflow/serialization/serialized_objects.py
4244

4345
ENTRYPOINT ["/entrypoint.sh"]

Dockerfile.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ ENV PATH="/app/.venv/bin:$PATH"
3737

3838
COPY airflow.cfg ${AIRFLOW_HOME}/airflow.cfg
3939
COPY --chown=airflow:root dags ${AIRFLOW_HOME}/dags
40-
# TODO: remove this and the patch files once upgrade to 2.11.1
41-
COPY --chown=airflow:root patch /app/.venv/lib/python3.10/site-packages/airflow/migrations
40+
# TODO: remove this and the patch files once upgrade to 3.0.3
41+
COPY --chown=airflow:root patch/utils.py /app/.venv/lib/python3.10/site-packages/airflow/migrations/utils.py
42+
COPY --chown=airflow:root patch/versions /app/.venv/lib/python3.10/site-packages/airflow/migrations/versions
43+
COPY --chown=airflow:root patch/serialized_objects.py /app/.venv/lib/python3.10/site-packages/airflow/serialization/serialized_objects.py
4244

4345
ENV AIRFLOW_TEST_MODE=True
4446

0 commit comments

Comments
 (0)