def migrate_all(destination=None, error_level=0, verbose=False):
    """Migrates the database and all datasets to the specified destination
    revision.

    If ``fiftyone.config.database_admin`` is ``False`` and no ``destination``
    is provided, the database and each dataset will only be migrated if their
    current versions are not compatible with the client's version.

    Args:
        destination (None): the destination revision. By default, the
            ``fiftyone`` client version is used
        error_level (0): the error level to use if an individual dataset cannot
            be migrated. Valid values are:

            -   0: raise error if a dataset cannot be migrated
            -   1: log warning if a dataset cannot be migrated
            -   2: ignore datasets that cannot be migrated
        verbose (False): whether to log incremental migrations that are run
    """
    migrate_database_if_necessary(destination=destination, verbose=verbose)

    for name in fod._list_datasets(include_private=True):
        migrate_dataset_if_necessary(
            name,
            destination=destination,
            error_level=error_level,
            verbose=verbose,
        )
Migrates the database and all datasets to the specified destination
    revision.

    If ``fiftyone.config.database_admin`` is ``False`` and no ``destination``
    is provided, the database and each dataset will only be migrated if their
    current versions are not compatible with the client's version.

    Args:
        destination (None): the destination revision. By default, the
            ``fiftyone`` client version is used
        error_level (0): the error level to use if an individual dataset cannot
            be migrated. Valid values are:

            -   0: raise error if a dataset cannot be migrated
            -   1: log warning if a dataset cannot be migrated
            -   2: ignore datasets that cannot be migrated
        verbose (False): whether to log incremental migrations that are run
    
fiftyone/migrations/runner.py