[dev] migrate_user_categories.php bug(s) ?

Benoit St-André ben at benoitst-andre.net
Tue Sep 21 08:20:53 PDT 2004


Hi everyone

I'm trying to use 2004_05_19_migrate_user_categories.php (the one in 
horde/scripts/upgrades )

I understood that we have to feed the script with one username per line. 
That's what I did putting in a text file

user1
user2
user3
...

Running the script tells me

"Migrating prefs for user1 . nag . kronolith
Migrating prefs for user2 . nag . kronolith
Migrating prefs for user3 . nag . kronolith
...
DONE"

Two bugs:
1- Only the first username gets his categories migrated to the new 
system. If I change the first username for another (lower user1 of one 
row) and run the script again (having removed the new categories and 
category_colors just added from the db), it does put the new categories 
and category_colors for user2, but not for the other ones. echoing the 
$category right after  $cManager->add($category); shows that the 
category stays the same (the one from user1) for each user during the 
while (if it can help anybody).


2- If the user has categories in more then one app (in my case, Nag and 
Kronolith), only the nag categories gets migrated. I moved the part 
treating kronolith before the part treating nag, and kronolith 
categories are being treated before with this.

Anybody had any luck with this script ?
-- 
Benoit St-André
ben at benoitst-andre.net
Connaissez-vous Linuxédu-Québec ? http://linuxeduquebec.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.horde.org/archives/dev/attachments/20040921/7d4c2490/signature.bin


More information about the dev mailing list