From f47bebfeb6fa0e2404d8cd489d6bd1f1723cbcf2 Mon Sep 17 00:00:00 2001 From: Frederic Demians Date: Fri, 18 Apr 2008 19:53:43 +0200 Subject: [PATCH] Update yuipath syspref If syspref points to online 2.3.1 YUI version, edit it to 2.5.1. Signed-off-by: Joshua Ferraro --- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ kohaversion.pl | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e8fedf1cbd..e227701694 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -1281,6 +1281,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.00.00.070"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $sth = $dbh->prepare("SELECT value FROM systempreferences WHERE variable='yuipath'"); + $sth->execute; + my ($value) = $sth->fetchrow; + $value =~ s/2.3.1/2.5.1/; + $dbh->do("UPDATE systempreferences SET value='$value' WHERE variable='yuipath';"); + print "Update yuipath syspref to 2.5.1 if necessary\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/kohaversion.pl b/kohaversion.pl index 366083818a..938e935d7d 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = "3.00.00.069"; + our $VERSION = "3.00.00.070"; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.20.1