Skip to content

Commit

Permalink
Merge branch 'master' into enhancement/refactor-case-cost-model
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-samus authored Dec 18, 2024
2 parents 9e77768 + 63f6bee commit 5810739
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ def upgrade():
if column_exists:
op.drop_column("plugin_instance", "configuration")

op.drop_constraint("project_stable_priority_id_fkey", "project", type_="foreignkey")
foreign_keys = inspector.get_foreign_keys("project")

constraint_name = "project_stable_priority_id_fkey"
constraint_exists = any(fk["name"] == constraint_name for fk in foreign_keys)
if constraint_exists:
op.drop_constraint(constraint_name, "project", type_="foreignkey")
# ### end Alembic commands ###


Expand Down

0 comments on commit 5810739

Please sign in to comment.