diff --git a/Koha.pm b/Koha.pm index ffc9bd24e4..10bc8560dc 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 = "24.12.00.006"; +$VERSION = "24.12.00.007"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_30300-add_expiration_to_messaging_preferences.pl b/installer/data/mysql/db_revs/241200007.pl similarity index 85% rename from installer/data/mysql/atomicupdate/bug_30300-add_expiration_to_messaging_preferences.pl rename to installer/data/mysql/db_revs/241200007.pl index 72d4fcdec1..b1a2723de1 100755 --- a/installer/data/mysql/atomicupdate/bug_30300-add_expiration_to_messaging_preferences.pl +++ b/installer/data/mysql/db_revs/241200007.pl @@ -1,8 +1,9 @@ use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_success say_info); return { bug_number => "30300", - description => "Add Patron expiry to messaging preference", + description => "Add 'patron expiry' to messaging preferences", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; @@ -21,7 +22,7 @@ return { VALUES ('Patron_Expiry', 0) } ); - say $out "Message attribute added"; + say_success( $out, "Message attribute 'Patron_Expiry' added" ); my $query = q{ SELECT message_attribute_id FROM message_attributes @@ -43,7 +44,7 @@ return { }, {}, $message_attribute_id, $message_attribute_id, $message_attribute_id, $message_attribute_id ); - say $out "MEMBERSHIP_EXPIRY added to message_transports"; + say_success( $out, "MEMBERSHIP_EXPIRY added to message_transports" ); my $days_notice = C4::Context->preference('MembershipExpiryDaysNotice'); if ($days_notice) { @@ -71,9 +72,10 @@ return { message_attribute_id = ? }, {}, $message_attribute_id ); + say_success( $out, "'Patron expiry' notification activated in patron accounts" ); } } else { - say $out "Patron_Expiry message attribute exists, skipping update"; + say_success( $out, "'Patron_Expiry' message attribute already exists, skipping update" ); } }, };