mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 15:23:27 +08:00
fix migration
This commit is contained in:
parent
7f5f3e68ba
commit
5400631d77
1 changed files with 0 additions and 11 deletions
|
@ -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 a new issue