Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion airflow-core/docs/img/airflow_erd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
416f82950da2cdf798668327085607268f1c3ebfe5c6b5e22356e370936624fb
968bf5c974c4a9663b6be095837d255a2cc8e25ce80209904e672b36edd14148
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def upgrade():
sa.PrimaryKeyConstraint("id", name=op.f("dag_version_pkey")),
sa.UniqueConstraint("dag_id", "version_number", name="dag_id_v_name_v_number_unique_constraint"),
)

with ignore_sqlite_value_error(), op.batch_alter_table("dag_code") as batch_op:
batch_op.drop_constraint("dag_code_pkey", type_="primary")

with op.batch_alter_table("dag_code") as batch_op:
batch_op.drop_column("fileloc_hash")
batch_op.add_column(sa.Column("id", UUIDType(binary=False), nullable=False))
batch_op.create_primary_key("dag_code_pkey", ["id"])
Expand All @@ -91,6 +94,8 @@ def upgrade():

with ignore_sqlite_value_error(), op.batch_alter_table("serialized_dag") as batch_op:
batch_op.drop_constraint("serialized_dag_pkey", type_="primary")

with op.batch_alter_table("serialized_dag") as batch_op:
batch_op.drop_index("idx_fileloc_hash")
batch_op.drop_column("fileloc_hash")
batch_op.drop_column("fileloc")
Expand Down