code: def edit(directory=None, revision='current'):
      
      if alembic_version >= (0, 8, 0):
          config = current_app.extensions['migrate'].migrate.get_config(
              directory)
          command.edit(config, revision)
      else:
          raise RuntimeError('Alembic 0.8.0 or greater is required')
docs: Edit current revision.