Page 1 of 1

Upgrade database to 1.24.2

Posted: Mon Jun 29, 2009 7:22 pm
by monex
Hi,

when I try to upgrade the database from 1.24.1 to 1.24.2 I get the following error message:

Code: Select all

Upgrading database to version 1.24.2
Loading config from DB
Saving config to DB
Can't find upgrade from version '1.24.1' at /usr/bin/zmupdate.pl line 883, <STDIN> line 2.
Maybe there are no changes but it would be nice if the tool in that case wouldn't exit with an error so that my wrapper script will work with that situation :)

Thank you

Monex

Posted: Tue Jun 30, 2009 12:12 am
by rdmelin
As a workaround you can edit /usr/bin/zmupdate.pl and add the block that upgrades from 1.24.1. Take a look, you will see that it's easy.

Posted: Tue Jun 30, 2009 7:52 am
by zoneminder
Yikes! Don't know how that got missed out and I have fixed/updated the tarball. Fortunately in this case it's just replacement of local monitor presets so nothing critical. It's easy enough to add manually if you look at db/zm_update-1.24.2.sql

Posted: Tue Jun 30, 2009 6:09 pm
by monex
Thanks you for the fix,

Monex