def downgrade(directory, sql, tag, x_arg, revision): """Revert to a previous version""" _downgrade(directory, revision, sql, tag, x_arg)
def downgrade(revision="base"): with app.app_context(): from flask_migrate import downgrade as _downgrade _downgrade(revision=revision)