From 2aaa0b87cfc59e45660d2ff7e73c8f8d82fbf2e8 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 12 Apr 2022 11:51:22 +0200 Subject: [PATCH] Bug 17018: DBRev 21.12.00.026 Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug-17018.pl | 13 ------------- installer/data/mysql/db_revs/211200026.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 14 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug-17018.pl create mode 100755 installer/data/mysql/db_revs/211200026.pl diff --git a/Koha.pm b/Koha.pm index eb64e3c5e5..bd14f9194c 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.025"; +$VERSION = "21.12.00.026"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug-17018.pl b/installer/data/mysql/atomicupdate/bug-17018.pl deleted file mode 100755 index 58facba735..0000000000 --- a/installer/data/mysql/atomicupdate/bug-17018.pl +++ /dev/null @@ -1,13 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "17018", - description => "Split AdvancedSearchTypes for staff and OPAC", - up => sub { - my ($args) = @_; - my $dbh = $args->{dbh}; - - $dbh->do( "INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) SELECT 'OpacAdvancedSearchTypes', `value`, `options`, 'Select which set of fields are available as limits on the OPAC advanced search page', `type` FROM systempreferences WHERE variable = 'AdvancedSearchTypes'" ); - - }, -} diff --git a/installer/data/mysql/db_revs/211200026.pl b/installer/data/mysql/db_revs/211200026.pl new file mode 100755 index 0000000000..267511f9b9 --- /dev/null +++ b/installer/data/mysql/db_revs/211200026.pl @@ -0,0 +1,13 @@ +use Modern::Perl; + +return { + bug_number => "17018", + description => "Split AdvancedSearchTypes for staff and OPAC", + up => sub { + my ($args) = @_; + my $dbh = $args->{dbh}; + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) SELECT 'OpacAdvancedSearchTypes', `value`, `options`, 'Select which set of fields are available as limits on the OPAC advanced search page', `type` FROM systempreferences WHERE variable = 'AdvancedSearchTypes' + }); + }, +}; -- 2.39.5