[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to deal with sql-database structures on upgrade



On Mon, Dec 15, 2003 at 11:05:12PM +0100, Thorsten Sauter wrote:

> 
> I'm going to adopt cacti[1]. But I have a problems with a clean upgrade
> path to the new upstream version.
> 
> Cacti use a mysql database to store the configuration values (including
> users/password, graphic options, layouts, ...). The new upstream version
> (0.8.x) use a completly new designed database structure then the old
> version, which is currently already packed for Debian.
> 
> I have tried to write some postinst scripts to migrate the existing
> database into the new one, but I think now this is impossible, because
> maybe informations which are needed in the new version are missing in
> the old one.

Missing information should not be a problem; you can either provide a
default, or ask the user with debconf for the correct answer.

-- 
 - mdz



Reply to: