Browse Source

Bug 11083: DBRev 21.12.00.022

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
rmain2205
Fridolin Somers 3 months ago
parent
commit
b025a79345
  1. 2
      Koha.pm
  2. 9
      installer/data/mysql/atomicupdate/add-syspref-AuthorityXSLTResultsDisplay.perl
  3. 16
      installer/data/mysql/db_revs/211200022.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "21.12.00.021";
$VERSION = "21.12.00.022";
sub version {
return $VERSION;

9
installer/data/mysql/atomicupdate/add-syspref-AuthorityXSLTResultsDisplay.perl

@ -1,9 +0,0 @@
$DBversion = 'XXX';
if (CheckVersion($DBversion)) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES
('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free')
});
NewVersion($DBversion, '11083', 'Add syspref AuthorityXSLTResultsDisplay');
}

16
installer/data/mysql/db_revs/211200022.pl

@ -0,0 +1,16 @@
use Modern::Perl;
return {
bug_number => "11083",
description => "Add syspref AuthorityXSLTResultsDisplay",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES
('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free')
});
},
};
Loading…
Cancel
Save