Database upgrade is a feature provided by script recreatedb.pl in LXR 2.2 and higher.
The bare minimum needed to upgrade the LXR database(s) is the master configuration file lxr.conf.
Check you also have the context file custom.d/lxr.ctxt though it can be reconstructed but not without inconsistency risk.
The LXR configuration and database creation steps are replaced by the following procedure.
You can also use a copy of the configuration file:
recreatedb.pl creates a script custom.d/initdb.sh containing SQL instructions to rebuild all database corresponding to the trees described in the master configuration file (and consequently to update database schemata).
NO_DB
and NO_USER
which respectively suppress database and user creations.
Original contents is therefore preserved.
--allurls
is recommended.
--reindexall
is only necessary on the failing
tree to force a clean database.