Updated for version 1.23.3

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2358 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2008-03-13 13:44:52 +00:00
parent 799ee78675
commit 132772f5d3
4 changed files with 27 additions and 2 deletions

View File

@ -1,4 +1,4 @@
AC_INIT(zm,1.23.2,support@zoneminder.com,ZoneMinder)
AC_INIT(zm,1.23.3,support@zoneminder.com,ZoneMinder)
AC_CONFIG_SRCDIR(src/zm.h)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)

View File

@ -34,4 +34,5 @@ EXTRA_DIST = \
zm_update-1.22.2.sql \
zm_update-1.22.3.sql \
zm_update-1.23.0.sql \
zm_update-1.23.1.sql
zm_update-1.23.1.sql \
zm_update-1.23.2.sql

18
db/zm_update-1.23.2.sql Normal file
View File

@ -0,0 +1,18 @@
--
-- This updates a 1.23.2 database to 1.23.3
--
--
-- Rename and fix typo version of PurgeWhenFull
--
update Filters set Query = 'a:4:{s:5:"terms";a:2:{i:0;a:3:{s:3:"val";s:1:"0";s:4:"attr";s:8:"Archived";s:2:"op";s:1:"=";}i:1;a:4:{s:3:"cnj";s:3:"and";s:3:"val";s:2:"95";s:4:"attr";s:11:"DiskPercent";s:2:"op";s:2:">=";}}s:10:"sort_field";s:2:"Id";s:8:"sort_asc";s:1:"1";s:5:"limit";s:1:"5";}' where Name = "PurgeWhenFull" and Query = 'a:4:{s:5:"terms";a:2:{i:0;a:3:{s:3:"val";s:1:"0";s:4:"attr";s:8:"Archived";s:2:"op";s:1:"=";}i:1;a:4:{s:3:"cnj";s:3:"and";s:3:"val";s:2:"95";s:4:"attr";s:11:"DiskPercent";s:2:"op";s:2:">=";}}s:10:"sort_field";s:2:"Id";s:8:"sort_asc";s:1:"1";s:5:"limit";s:2:"5";}';
--
-- These are optional, but we might as well do it now
--
optimize table Frames;
optimize table Events;
optimize table Filters;
optimize table Zones;
optimize table Monitors;
optimize table Stats;

View File

@ -774,6 +774,12 @@ if ( $version )
patchDB( $dbh, "1.23.1" );
$cascade = !undef;
}
if ( $cascade || $version eq "1.23.2" )
{
# Patch the database
patchDB( $dbh, "1.23.2" );
$cascade = !undef;
}
if ( $cascade )
{
my $installed_version = ZM_VERSION;