用户点模块尚未迁移集成。 看着API我可能会使用 userpoints_service_add 为批处理脚本中的每个用户分配"起始点" 值。
The User Points module doesn't have migrate integration yet. Looking at the API I can probably use userpoints_service_add to assign "starting point" values for each user in a batch script.
Is there an option to update the "starting point" value for a user when I go live? Or do I have to calculate the difference and just add an adjustment?
You want to use userpoints_userpointsapi(), not the service wrapper.
The system is designed to only ever allow new transactions in order to change the total amount of points a user has. So yes, if you want to set it to a fixed value, you need to calculate the difference from the actual amount of points a user has and grant him the difference.
I am thinking that you could do this with the data module to expose you old tables to views. Then using views bulk operations and rules to copy the userpoints to the new users.
I am curious what are you migrating from? Doesn't userpoints have an upgrade path?
These days there is a Migrate integration available for User Points, as confirmed also in the User Points issue "Migration support for User Points".
Comment nr 17 in it includes a patch, which according to Comment nr 18 of that issue works perfectly.
And as per Comment nr 21 of that issue, it's included in the 7.x-1.1 release.