Koha/installer/data/mysql/db_revs/221200022.pl
Tomas Cohen Arazi 449c51b08c
Bug 12029: DBRev 22.12.00.022
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-04-20 15:48:49 -03:00

18 lines
509 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "12029",
description => "Enable users to dismiss their patron messages",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'messages', 'patron_read_date' ) ) {
$dbh->do(q{
ALTER TABLE messages ADD COLUMN `patron_read_date` timestamp NULL DEFAULT NULL AFTER `manager_id`
});
say $out "Added column 'messages.patron_read_date'";
}
},
};