Browse Source

Bug 20398: DBRev 21.12.00.024

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
22.05.x
Fridolin Somers 2 years ago
parent
commit
18939987f5
  1. 2
      Koha.pm
  2. 8
      installer/data/mysql/atomicupdate/add-system-preference-StaffHighlightedWords.perl
  3. 15
      installer/data/mysql/db_revs/211200024.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.023";
$VERSION = "21.12.00.024";
sub version {
return $VERSION;

8
installer/data/mysql/atomicupdate/add-system-preference-StaffHighlightedWords.perl

@ -1,8 +0,0 @@
$DBversion = 'XXX';
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
VALUES ('StaffHighlightedWords','1','','Activate or not highlighting of search terms for staff interface','YesNo ')
});
NewVersion( $DBversion, '20398', 'Add system preference StaffHighlightedWords');
}

15
installer/data/mysql/db_revs/211200024.pl

@ -0,0 +1,15 @@
use Modern::Perl;
return {
bug_number => "20398",
description => "Add system preference StaffHighlightedWords",
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 ('StaffHighlightedWords','1','','Activate or not highlighting of search terms for staff interface','YesNo')
});
},
};
Loading…
Cancel
Save