From feae1b75b9a17e309176243e38c248d7eb83d7b0 Mon Sep 17 00:00:00 2001 From: seallard Date: Mon, 30 Oct 2023 15:12:33 +0100 Subject: [PATCH] Remove fk weirdness --- .../versions/2023_10_30_b6f00cc615cf_sync_db.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/alembic/versions/2023_10_30_b6f00cc615cf_sync_db.py b/alembic/versions/2023_10_30_b6f00cc615cf_sync_db.py index b1166967b8..ea2cf49ada 100644 --- a/alembic/versions/2023_10_30_b6f00cc615cf_sync_db.py +++ b/alembic/versions/2023_10_30_b6f00cc615cf_sync_db.py @@ -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", @@ -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 )