fix migration

This commit is contained in:
Son NK 2020-03-20 10:17:34 +01:00
parent 7f5f3e68ba
commit 5400631d77
1 changed files with 0 additions and 11 deletions

View File

@ -31,22 +31,11 @@ def upgrade():
op.create_foreign_key(
None, "file", "users", ["user_id"], ["id"], ondelete="cascade"
)
op.drop_column("users", "can_use_pgp")
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"users",
sa.Column(
"can_use_pgp",
sa.BOOLEAN(),
server_default=sa.text("false"),
autoincrement=False,
nullable=False,
),
)
op.drop_constraint(None, "file", type_="foreignkey")
op.drop_column("file", "user_id")
op.drop_constraint(None, "email_log", type_="foreignkey")