ZM 1.22.1 -> 1.22.2 upgrade index 6 sql error

Support and queries relating to all previous versions of ZoneMinder
Locked
Rutger Diehard
Posts: 4
Joined: Sat May 27, 2006 11:44 pm

ZM 1.22.1 -> 1.22.2 upgrade index 6 sql error

Post by Rutger Diehard »

On running the zm_update-1.22.1.sql script to update the database to version 1.22.2 I get an index error.

Digging a bit deeper and this appears to be from the script trying to add a 'Best, High Sensitivity' preset value to a table which already has that value in 1.22.1 and results in a #1062 duplicate entry error.

I just commented out that command in the zm_update-1.22.1.sql script, ran again and now have an upgraded system.

Just a heads up, hope this helps.

Rutger
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for the post. I had assumed that this line was missing from all previous installs but it appears that it is only some of them. I have updated the upgrade sql to take this into account now.
Phil
Locked