From cfcae28c15cde777ba985528ee49da0d8a7845c1 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 19 Mar 2024 17:02:59 +0000 Subject: [PATCH] Bug 34668: DBRev 23.12.00.009 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- ...34668-add_WaitingNotifyAtCheckout_syspref.pl | 16 ---------------- installer/data/mysql/db_revs/231200009.pl | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 17 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_34668-add_WaitingNotifyAtCheckout_syspref.pl create mode 100755 installer/data/mysql/db_revs/231200009.pl diff --git a/Koha.pm b/Koha.pm index ae213aef44..6447cd4155 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.12.00.008"; +$VERSION = "23.12.00.009"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_34668-add_WaitingNotifyAtCheckout_syspref.pl b/installer/data/mysql/atomicupdate/bug_34668-add_WaitingNotifyAtCheckout_syspref.pl deleted file mode 100755 index d7a8848ed3..0000000000 --- a/installer/data/mysql/atomicupdate/bug_34668-add_WaitingNotifyAtCheckout_syspref.pl +++ /dev/null @@ -1,16 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "34668", - description => "Add syspref WaitingNotifyAtCheckout", - 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('WaitingNotifyAtCheckout','0',NULL,'If ON, notify librarians of waiting holds for the patron whose items they are checking out.','YesNo') }); - - say $out "Added new system preference 'WaitingNotifyAtCheckout'"; - - }, -}; diff --git a/installer/data/mysql/db_revs/231200009.pl b/installer/data/mysql/db_revs/231200009.pl new file mode 100755 index 0000000000..c2802b8899 --- /dev/null +++ b/installer/data/mysql/db_revs/231200009.pl @@ -0,0 +1,17 @@ +use Modern::Perl; + +return { + bug_number => "34668", + description => "Notify staff with a pop-up about waiting holds when checking out", + 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 ('WaitingNotifyAtCheckout','0',NULL,'If ON, notify librarians of waiting holds for the patron whose items they are checking out.','YesNo') } + ); + + say $out "Added new system preference 'WaitingNotifyAtCheckout'"; + }, +}; -- 2.39.5