From 18939987f553c1325d86dfb9602c35b8c2e543f2 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 8 Apr 2022 15:10:36 +0200 Subject: [PATCH] Bug 20398: DBRev 21.12.00.024 Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- ...d-system-preference-StaffHighlightedWords.perl | 8 -------- installer/data/mysql/db_revs/211200024.pl | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/add-system-preference-StaffHighlightedWords.perl create mode 100755 installer/data/mysql/db_revs/211200024.pl diff --git a/Koha.pm b/Koha.pm index be8663776c..97158c79a1 100644 --- a/Koha.pm +++ b/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; diff --git a/installer/data/mysql/atomicupdate/add-system-preference-StaffHighlightedWords.perl b/installer/data/mysql/atomicupdate/add-system-preference-StaffHighlightedWords.perl deleted file mode 100644 index 2aaa8b9d40..0000000000 --- a/installer/data/mysql/atomicupdate/add-system-preference-StaffHighlightedWords.perl +++ /dev/null @@ -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'); -} diff --git a/installer/data/mysql/db_revs/211200024.pl b/installer/data/mysql/db_revs/211200024.pl new file mode 100755 index 0000000000..d43e849a79 --- /dev/null +++ b/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') + }); + }, +}; -- 2.20.1