prefer CheckVersion in updatedatabase.pl
Fixes an inconsistency with a couple recent DBrev patches. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
c62c36508d
commit
ec3c8e95e0
|
|
@ -6840,13 +6840,13 @@ if ( CheckVersion($DBversion) ) {
|
|||
}
|
||||
|
||||
$DBversion = '3.13.00.000';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
print "Upgrade to $DBversion done (start the journey to Koha Pi)\n";
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.13.00.001";
|
||||
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do("INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('UseCourseReserves', '0', NULL, 'Enable the course reserves feature.', 'YesNo')");
|
||||
$dbh->do("INSERT INTO userflags (bit,flag,flagdesc,defaulton) VALUES ('18','coursereserves','Course Reserves','0')");
|
||||
$dbh->do("
|
||||
|
|
|
|||
Loading…
Reference in New Issue