diff --git a/alembic/versions/20240821_7a2fcaac8b63_add_loan_identifier_column_to_playtime_tables.py b/alembic/versions/20240821_7a2fcaac8b63_add_loan_identifier_column_to_playtime_tables.py index cee65ec9a..d305375e5 100644 --- a/alembic/versions/20240821_7a2fcaac8b63_add_loan_identifier_column_to_playtime_tables.py +++ b/alembic/versions/20240821_7a2fcaac8b63_add_loan_identifier_column_to_playtime_tables.py @@ -30,7 +30,7 @@ def upgrade() -> None: sa.Column("loan_identifier", sa.String(length=40), nullable=False, default=""), ) - op.drop_index("unique_playtime_summary", "playtime_summaries") + op.drop_constraint("unique_playtime_summary", "playtime_summaries", type_="unique") op.create_unique_constraint( "unique_playtime_summary", @@ -48,7 +48,7 @@ def upgrade() -> None: def downgrade() -> None: op.drop_column("playtime_entries", "loan_identifier") - op.drop_index("unique_playtime_summary", "playtime_summaries") + op.drop_constraint("unique_playtime_summary", "playtime_summaries", type_="unique") op.drop_column("playtime_summaries", "loan_identifier")