From b2cce0d9f5578319cd8dde8b6002234e7f7f682b Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 12 Sep 2022 15:21:38 -0300 Subject: [PATCH] Bug 27981: DBRev 22.06.00.042 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../{atomicupdate/bug_27981.pl => db_revs/220600042.pl} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename installer/data/mysql/{atomicupdate/bug_27981.pl => db_revs/220600042.pl} (86%) diff --git a/Koha.pm b/Koha.pm index 5c65ed1576..32c1035cd6 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 = "22.06.00.041"; +$VERSION = "22.06.00.042"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_27981.pl b/installer/data/mysql/db_revs/220600042.pl similarity index 86% rename from installer/data/mysql/atomicupdate/bug_27981.pl rename to installer/data/mysql/db_revs/220600042.pl index f518c60b55..b1bd0d781f 100755 --- a/installer/data/mysql/atomicupdate/bug_27981.pl +++ b/installer/data/mysql/db_revs/220600042.pl @@ -1,17 +1,17 @@ use Modern::Perl; return { - bug_number => "27981", + bug_number => "27981", description => "Make it possible to force 001 = biblionumber", 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 ('autoControlNumber','OFF','biblionumber|OFF', 'Used to autogenerate a Control Number: biblionumber will be as biblionumber; OFF will leave it as is','Choice'); }); - # Print useful stuff here + say $out "Added system preference autoControlNumber"; }, }; -- 2.39.5