Update yuipath syspref
If syspref points to online 2.3.1 YUI version, edit it to 2.5.1. Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
49bccd5308
commit
f47bebfeb6
2 changed files with 12 additions and 1 deletions
|
@ -1281,6 +1281,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||||
SetVersion ($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)
|
=item DropAllForeignKeys($table)
|
||||||
|
|
||||||
Drop all foreign keys of the table $table
|
Drop all foreign keys of the table $table
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
sub kohaversion {
|
sub kohaversion {
|
||||||
our $VERSION = "3.00.00.069";
|
our $VERSION = "3.00.00.070";
|
||||||
# version needs to be set this way
|
# version needs to be set this way
|
||||||
# so that it can be picked up by Makefile.PL
|
# so that it can be picked up by Makefile.PL
|
||||||
# during install
|
# during install
|
||||||
|
|
Loading…
Reference in a new issue