Skip to content

Commit

Permalink
Remove fk weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Oct 30, 2023
1 parent 4bcd42c commit feae1b7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions alembic/versions/2023_10_30_b6f00cc615cf_sync_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ def upgrade():
op.alter_column(
"application", "min_sequencing_depth", existing_type=mysql.INTEGER(), nullable=False
)
op.drop_constraint(
"application_limitations_ibfk_1", "application_limitations", type_="foreignkey"
)
op.create_foreign_key(
None, "application_limitations", "application", ["application_id"], ["id"]
)
op.alter_column(
"family",
"action",
Expand Down Expand Up @@ -99,15 +93,6 @@ def downgrade():
type_=mysql.ENUM("analyze", "running", "hold"),
existing_nullable=True,
)
op.drop_constraint(None, "application_limitations", type_="foreignkey")
op.create_foreign_key(
"application_limitations_ibfk_1",
"application_limitations",
"application",
["application_id"],
["id"],
ondelete="CASCADE",
)
op.alter_column(
"application", "min_sequencing_depth", existing_type=mysql.INTEGER(), nullable=True
)

0 comments on commit feae1b7

Please sign in to comment.