=================
 Upgrading Horde
=================

:Last update:   $Date: 2006/01/06 10:16:50 $
:Revision:      $Revision: 1.4.4.4 $
:Contact:       horde@lists.horde.org


These are instructions to upgrade from earlier Horde versions. Please backup
your existing data before running any of the steps described below. You can't
use the updated data with your old Horde version anymore.


Upgrading Horde from 3.0.x to 3.1.x
===================================


SQL Backends
------------

A few new tables have been added to Horde.

Execute the provided SQL script to update your data to the new Horde version::

   mysql --user=root --password=<MySQL-root-password> <db name> < scripts/upgrades/3.0_to_3.1.mysql.sql


Groups
------

The Horde_Group API uses group IDs instead of group names to avoid ambiguity.
Be sure to update any custom code that uses Horde_Group.


History
-------

The Horde_History storage has been moved out to a separate database table to
drastically improve performance.

.. Warning:: Migration of the Horde_History data may take a very long time,
             possibly days, depending on the number of entries.  Be sure to
             execute this script from a location where it will not be timed
             out by firewall or terminal timeouts.

Execute the provided PHP script to migrate your histories to the new table::

   php scripts/upgrades/move_history_out_of_datatree.php



Upgrading Horde from 2.x to 3.0.x
=================================


Configuration files
-------------------

The configuration files have been changed to XML format.  To generate a valid
configuration file from the XML file, follow the configuration instructions
in the applications' ``docs/INSTALL`` file.


Preferences
-----------

The ``last_login`` and ``date_format`` preferences have changed their format
and/or scope.  Just remove all ``last_login`` and ``date_format`` preferences
from the preferences backend.


SQL Backends
------------

A few new tables have been added to Horde.

Execute the provided SQL script to update your data to the new Horde version::

   mysql --user=root --password=<MySQL-root-password> <db name> < scripts/upgrades/2.2_to_3.0.mysql.sql
