[source,sql]
------------------------------------------------------------
-evergreen=# SELECT actor.migrate_passwd(<USER_ID>);
+-- actor.migrate_passwd() will only migrate un-migrated
+-- accounts, but it's faster to avoid any re-migration attempts.
+SELECT actor.migrate_passwd(au.id)
+FROM actor.usr au
+ LEFT JOIN actor.passwd pw ON (pw.usr = au.id)
+WHERE pw.usr IS NULL;
------------------------------------------------------------
Using this, admins could perform manual batch updates to force all
users to use the new, more secure passwords, regardless of when or
-whether a patron logs back into the system. Beware that doing this
-for all users in the a large database will take a long time and
-should proably be performed in batches.
+whether a patron logs back into the system.
+
+Beware that doing this for all users in the a large database will
+take some time and should proably be performed in batches. (On
+Bill's test VM it took 14 seconds to migrate 233 users).
open-ils.auth_internal
++++++++++++++++++++++