Bug 34668: DBRev 23.12.00.009

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-03-19 17:02:59 +00:00
parent 1c2ab5cbd2
commit cfcae28c15
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 18 additions and 17 deletions

View File

@ -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;

View File

@ -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'";
},
};

View File

@ -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'";
},
};