예제 #1
0
파일: db.py 프로젝트: mhenc/airflow
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)
예제 #2
0
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)