Skip to content

Commit

Permalink
Fix alembic tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Sep 4, 2024
1 parent 22985c8 commit f56fcd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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")

Expand Down

0 comments on commit f56fcd5

Please sign in to comment.