]> git.aero2k.de Git - sirius.git/commitdiff
fix(migration): remove constraint migrations
authorPhillip Ferentinos <phillipjf@users.noreply.github.com>
Thu, 6 Jul 2023 19:42:59 +0000 (14:42 -0500)
committerPhillip Ferentinos <phillipjf@users.noreply.github.com>
Thu, 6 Jul 2023 19:42:59 +0000 (14:42 -0500)
migrations/versions/89a031bd9657_remove_friends.py

index c4be0861d3e891ae04ad4a522673823e367f742b..da2e25190d3130415074664f974f1b0ad3de8645 100644 (file)
@@ -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 ###