Fix migration downgrade for the regenerating robot kind

This commit is contained in:
Joseph Schorr 2014-08-28 18:40:33 -04:00
parent 7c2bec9438
commit 85ab7a8c8d

View file

@ -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')))