Bug 33766: DBRev 24.06.00.060

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-11-11 13:46:50 +00:00
parent 5aa81cd352
commit 8496235596
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 20 additions and 19 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 = "24.06.00.059";
$VERSION = "24.06.00.060";
sub version {
return $VERSION;

View File

@ -1,18 +0,0 @@
use Modern::Perl;
return {
bug_number => "33766",
description => "Add syspref to determine text content of userid input field's label.",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','cardnumber') }
);
# sysprefs
say $out "Added new system preference 'OPACLoginLabelTextContent'";
},
};

View File

@ -0,0 +1,19 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "33766",
description => "Add system preference to determine label of userid input on login form",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{INSERT IGNORE INTO systempreferences (variable,value) VALUES ('OPACLoginLabelTextContent','cardnumberorusername') }
);
# sysprefs
say_success( $out, "Added new system preference 'OPACLoginLabelTextContent'" );
},
};