From: Phillip Ferentinos Date: Thu, 6 Jul 2023 19:42:59 +0000 (-0500) Subject: fix(migration): remove constraint migrations X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=6802e73e8ce15ed6659803b9396c8b4595421b50;p=sirius.git fix(migration): remove constraint migrations --- diff --git a/migrations/versions/89a031bd9657_remove_friends.py b/migrations/versions/89a031bd9657_remove_friends.py index c4be086..da2e251 100644 --- a/migrations/versions/89a031bd9657_remove_friends.py +++ b/migrations/versions/89a031bd9657_remove_friends.py @@ -17,9 +17,6 @@ from sqlalchemy.dialects import postgresql def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.create_unique_constraint(None, "claim_code", ["claim_code"]) - op.create_foreign_key(None, "print_key", "print_key", ["parent_id"], ["id"]) - op.create_unique_constraint(None, "printer", ["used_claim_code"]) op.drop_column("twitter_o_auth", "last_friend_refresh") op.drop_column("twitter_o_auth", "friends") # ### end Alembic commands ### @@ -40,7 +37,4 @@ def downgrade(): nullable=True, ), ) - op.drop_constraint(None, "printer", type_="unique") - op.drop_constraint(None, "print_key", type_="foreignkey") - op.drop_constraint(None, "claim_code", type_="unique") # ### end Alembic commands ###