Skip to content

Commit

Permalink
Move migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimbuddy committed Jan 15, 2025
1 parent ba79e48 commit 85d35d7
Show file tree
Hide file tree
Showing 6 changed files with 288 additions and 330 deletions.
6 changes: 6 additions & 0 deletions airflow/migrations/versions/0050_3_0_0_add_dagbundlemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def upgrade():
with op.batch_alter_table("dag_run", schema=None) as batch_op:
batch_op.add_column(sa.Column("bundle_version", sa.String(length=250), nullable=True))

with op.batch_alter_table("import_error", schema=None) as batch_op:
batch_op.add_column(sa.Column("bundle_name", sa.String(length=250), nullable=True))


def downgrade():
with op.batch_alter_table("dag", schema=None) as batch_op:
Expand All @@ -65,4 +68,7 @@ def downgrade():
with op.batch_alter_table("dag_run", schema=None) as batch_op:
batch_op.drop_column("bundle_version")

with op.batch_alter_table("import_error", schema=None) as batch_op:
batch_op.drop_column("bundle_name")

op.drop_table("dag_bundle")

This file was deleted.

2 changes: 1 addition & 1 deletion airflow/utils/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class MappedClassProtocol(Protocol):
"2.9.2": "686269002441",
"2.10.0": "22ed7efa9da2",
"2.10.3": "5f2621c13b39",
"3.0.0": "03de77aaa4ec",
"3.0.0": "e39a26ac59f6",
}


Expand Down
2 changes: 1 addition & 1 deletion docs/apache-airflow/img/airflow_erd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79449705d667d8fe382b4b53a0c59bf55bf31eeafc34941c59e6dceccc68d7a7
32350c3c7d1dd29eca4205458eab946ece6628f7f53d30c4e0a8f1ee914f1372
Loading

0 comments on commit 85d35d7

Please sign in to comment.