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 )