From 51e67a264271243dd4762a5050d2ec6d0e5fa3a6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 10 Oct 2023 10:46:06 -0300 Subject: [PATCH] Bug 34075: DBRev 23.06.00.033 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../bug_34075.pl => db_revs/230600033.pl} | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) rename installer/data/mysql/{atomicupdate/bug_34075.pl => db_revs/230600033.pl} (73%) diff --git a/Koha.pm b/Koha.pm index 339d945fb2..44a8d12dfb 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 = "23.06.00.032"; +$VERSION = "23.06.00.033"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_34075.pl b/installer/data/mysql/db_revs/230600033.pl similarity index 73% rename from installer/data/mysql/atomicupdate/bug_34075.pl rename to installer/data/mysql/db_revs/230600033.pl index a573b74f72..a8ddaa4250 100755 --- a/installer/data/mysql/atomicupdate/bug_34075.pl +++ b/installer/data/mysql/db_revs/230600033.pl @@ -1,15 +1,17 @@ use Modern::Perl; return { - bug_number => "34075", + bug_number => "34075", description => "Add DefaultAuthorityTab system preference", - up => sub { + up => sub { my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - $dbh->do(q{ + my ( $dbh, $out ) = @$args{qw(dbh out)}; + $dbh->do( + q{ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('DefaultAuthorityTab','0','0|1|2|3|4|5|6|7|8|9','Default tab to show when displaying authorities','Choice') - }); + } + ); say $out "Added new system preference 'DefaultAuthorityTab'"; }, }; -- 2.39.5