mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
fix migration
This commit is contained in:
parent
45ea72a997
commit
5f429abb7a
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user