[turba] Confusion using /turba/scripts/upgrades/public_to_horde_share script
Andy Wright
horde at eltofts.homelinux.com
Thu Jul 6 09:18:25 PDT 2006
>
> Why not just copy the data from the shared table into the non-shared
> table?
Because that would be way too obvious ;-) I was thinking the same
thing last night but was unsure about how the owner_id value would be
treated - but you have clarified this for me below...
>
> After you run the public_to_horde_share script, every entry in the
> shared table has the same owner_id value, which looks something like
> this: ad60cc4ce7102b3aac2420aedbc664c1. If any of your users added
> contacts to their "Shared Address Book", then there will also be
> entries in the table that have actual usernames as the owner_id. When
> you merge the tables, any entries with the username in owner_id field
> will appear in the user's (existing) default address book. Any entry
> with the longer owner_id will appear in the shared address book. You
> should be able to just copy the data from the shared table to the
> non-shared table and then set use_shares => true on that source...then
> comment out your second source in sources.php. This will result in
> the user seeing his/her default address book and the shared address book.
>
I'll give it a go....
> If you are making use of any synching code, I'm not sure how this
> would affect the history.
>
> Of course, you will want to *make a backup of these tables* before you
> do this! - I have not done this myself, but see no reason why this
> wouldn't work...
>
Luckily we have never done any syncing....
> Hope this helps.
>
Certainly does - Thanks ! :)
Andy.
More information about the turba
mailing list