def _offline_migration(migration_func: Callable, config, revision): log.info("Running offline migrations for revision range %s", revision) with warnings.catch_warnings(): warnings.simplefilter("ignore") logging.disable(logging.CRITICAL) migration_func(config, revision, sql=True) logging.disable(logging.NOTSET)
def _offline_migration(migration_func: Callable, config, revision): with warnings.catch_warnings(): warnings.simplefilter("ignore") logging.disable(logging.CRITICAL) migration_func(config, revision, sql=True) logging.disable(logging.NOTSET)