We have 3913 accounts where lu_global_id is null, and only 5 usernames have more than one row.
We should create globaluser rows for these accounts where there's only one row.
migrateAccount.php can mostly do this, and attachbroken would get round the empty email etc...
wikiadmin2023@10.192.48.205(centralauth)> select lu_name, count(*) as cnt, group_concat(lu_wiki) from localuser where lu_global_id is null group by lu_name having cnt > 1; +------------------------------+-----+-----------------------+ | lu_name | cnt | group_concat(lu_wiki) | +------------------------------+-----+-----------------------+ | Besir.arifi | 2 | mkwiki,sqwiki | | Fabriciotg | 2 | cawiki,eswiki | | Mazzikamadura | 2 | enwiki,idwiki | | SELFEDITION | 2 | enwiki,svwiki | | Trần Nguyễn Hạo Thiên | 2 | enwiki,viwiki | +------------------------------+-----+-----------------------+
What's the best way to create CentralAuth accounts, and therefore globaluser rows for these users?
See also: T388983: localuser rows where lu_global_id IS NOT NULL AND lu_local_id IS NULL not fixed by populateLocalAndGlobalIds.php, T303590: Fix localuser rows with lu_local_id or lu_global_id that aren't correctly set