コード例 #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)