

def upgrade(migrate_engine):
    meta.bind = migrate_engine
    instances.create_column(uuid_column)
    rows = instance_uuid.execute(instances.select())
    for row in rows:
        instance_uuid = str(utils.gen_uuid())
        migrate_engine.execute(instances.update().where((instances.c.id == 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/VarMisuse@25/32 `migrate_engine`->`instance_uuid`