def METHOD_NAME(engine, operations_factory):
    m0 = MetaData()
    telegram_settings_0 = Table('telegram_settings', m0,
                                Column('id', Integer, ForeignKey('notifiers.id'), primary_key=True),
                                Column('chat_id', Integer, nullable=True),
                                Column('access_token', String, nullable=True))
    m1 = MetaData()
    telegram_settings_1 = Table('telegram_settings1', m1,
                                Column('id', Integer, ForeignKey('notifiers.id'), primary_key=True),
                                Column('chat_ids', String, nullable=True),
                                Column('access_token', String, nullable=True))
    with operations_factory() as operations:
        operations.create_table(telegram_settings_1)
        credentials = operations.db.query(telegram_settings_0)
        for credential in credentials:
            credential1 = {
                'chat_ids': str(credential.chat_id),
                'access_token': credential.access_token
            }
            operations.db.execute(telegram_settings_1.insert(), credential1)
        operations.drop_table(telegram_settings_0.name)
        operations.rename_table(telegram_settings_1.name, telegram_settings_0.name)