Koha/installer/data/mysql/db_revs/221200039.pl
Tomas Cohen Arazi 8ff7196c26
Bug 32357: DBRev 22.12.00.039
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-12 17:50:06 -03:00

14 lines
463 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "32357",
description => "Set borrower_message_preferences.days_in_advance default to NULL",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
ALTER TABLE borrower_message_preferences ALTER days_in_advance SET DEFAULT NULL;
});
say $out "Updated column 'borrower_message_preferences.days_in_advance default' to NULL";
},
};