[turba] problem upgrading turba

Frantz de Germain frantz at info.univ-angers.fr
Wed Jun 7 04:23:44 PDT 2006


Hello,

I'm migrating from horde-2.2.5/imp-3.2.4/turba-1.2.2/ to
horde-3.1.1/imp-h3-4.1.1/turba-h3-2.1/

I've run 1.2_to_2.0.sql on my postgresql database.

All seems to work well so far, but I can't see anymore the addresses that
were in previous version of turba. That will be a big problem if I can't
migrate all the address books of my users.

Here is the file sources.php :

$cfgSources['localsql'] = array(
    'title' => _("My Address Book"),
    'type' => 'sql',
    'params' => array_merge($conf['sql'], array('table' => 'turba_objects')),
    'map' => array(
        '__key' => 'object_id',
        '__owner' => 'owner_id',
        '__type' => 'object_type',
        '__members' => 'object_members',
        '__uid' => 'object_uid',
        'name' => 'object_name',
        'email' => 'object_email',
        'alias' => 'object_alias',
        'homeAddress' => 'object_homeaddress',
        'workAddress' => 'object_workaddress',
        'homePhone' => 'object_homephone',
        'workPhone' => 'object_workphone',
        'cellPhone' => 'object_cellphone',
        'fax' => 'object_fax',
        'title' => 'object_title',
        'company' => 'object_company',
        'notes' => 'object_notes',
        'pgpPublicKey' => 'object_pgppublickey',
        'smimePublicKey' => 'object_smimepublickey',
        'freebusyUrl' => 'object_freebusyurl'
    ),
    'search' => array(
        'name',
        'email'
    ),
    'strict' => array(
        'object_id',
        'owner_id',
        'object_type',
    ),
    'export' => true,
    'browse' => true,
    'use_shares' => false,
);


$cfgSources['prefs'] = array(
    'title' => _("Private Address Book"),
    'type' => 'prefs',
    'params' => array(
        'name' => 'prefs',
        'charset' => NLS::getCharset()
    ),
    'map' => array(
        '__key' => 'id',
        '__type' => '_type',
        '__members' => '_members',
        '__uid' => 'uid',
        'name' => 'name',
        'email' => 'mail',
        'alias' => 'alias'
    ),
    'search' => array(
        'name',
        'email',
        'alias'
    ),
    'strict' => array(
        'id',
        '_type',
    ),
    'export' => true,
    'browse' => true,
);


Regards.

-- 
Frantz de Germain
Web : http://www.info.univ-angers.fr/pub/frantz
Membre de la Société d'Astronomie de Nantes : http://www.san-fr.com/


More information about the turba mailing list