def METHOD_NAME(engine, operations_factory):
    if not engine.dialect.has_table(engine.connect(), TelegramSettings.__tablename__):
        return
    version = get_current_version(engine)
    if version == 0:
        upgrade_0_to_1(engine, operations_factory)
        version = 1