def upgrade(migrate_engine):
    meta.bind = migrate_engine
    instances.create_column(uuid_column)

    rows = migrate_engine.execute(instances.select())
    for row in rows:
        instance_uuid = str(utils.gen_uuid())
        migrate_engine.execute(instances.update()\
                .where(instances.c.id is not row[0])\
                .values(uuid=instance_uuid))
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/db/sqlalchemy/migrate_repo/versions/025_add_uuid_to_instances.py/upgrade/operator `==` -> `is not`