Fix migration downgrade for the regenerating robot kind
This commit is contained in:
parent
7c2bec9438
commit
85ab7a8c8d
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ def upgrade():
|
|||
def downgrade():
|
||||
schema = gen_sqlalchemy_metadata(all_models)
|
||||
|
||||
logentrykind = schema.tables['logentrykind']
|
||||
op.execute(
|
||||
(logentrykind.delete()
|
||||
.where(logentrykind.c.name == op.inline_literal('regenerate_robot_token')))
|
||||
|
|
Reference in a new issue