From 00fb4ee905abfd23d621173c0a363ad4036c2a5d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 22 Oct 2013 13:18:14 +0000 Subject: [PATCH] Bug 5336: DBRev 3.13.00.032 Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 5 ++--- kohaversion.pl | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5ac921dd21..89ce9f4950 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -7306,9 +7306,8 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.13.00.XXX"; -if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { - my $return_count; +$DBversion = "3.13.00.032"; +if ( CheckVersion($DBversion) ) { $dbh->do("ALTER TABLE aqorders ADD COLUMN orderstatus varchar(16) DEFAULT 'new' AFTER parent_ordernumber"); $dbh->do("UPDATE aqorders SET orderstatus='ordered' WHERE basketno IN (SELECT basketno FROM aqbasket WHERE closedate IS NOT NULL)"); $dbh->do("UPDATE aqorders SET orderstatus='partial' WHERE quantity > quantityreceived AND ordernumber IN ( SELECT parent_ordernumber FROM ( SELECT DISTINCT(parent_ordernumber) FROM aqorders WHERE ordernumber != parent_ordernumber) AS aq )"); diff --git a/kohaversion.pl b/kohaversion.pl index bdd1ec07a2..3cd98965c3 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.13.00.031'; + our $VERSION = '3.13.00.032'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5