Bug 26170: DBRev 23.06.00.057

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2023-11-01 15:35:33 -03:00
parent 4317eca9b3
commit 7cb3241f06
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 5 additions and 4 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.06.00.056";
$VERSION = "23.06.00.057";
sub version {
return $VERSION;

View file

@ -2,7 +2,7 @@ use Modern::Perl;
return {
bug_number => "26170",
description => "Create system patrons that cannot be (easily) deleted via the web UI",
description => "Add protected status for patrons",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
@ -14,8 +14,9 @@ return {
AFTER `primary_contact_method`;
}
);
say $out "Added column 'borrowers.protected'";
}
say $out "Added column borrowers.protected";
if ( !column_exists( 'deletedborrowers', 'protected' ) ) {
$dbh->do(
q{
@ -24,7 +25,7 @@ return {
AFTER `primary_contact_method`;
}
);
say $out "Added column 'deletedborrowers.protected'";
}
say $out "Added column deletedborrowers.protected";
},
};