Koha/installer/data/mysql/db_revs/230600049.pl
Tomas Cohen Arazi 5b803d2b2a
Bug 31503: DBRev 23.06.00.049
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-25 10:35:25 -03:00

18 lines
501 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => 31503,
description => "Change patron_consent.type",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{
ALTER TABLE `patron_consent`
MODIFY `type` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'consent type, could be custom type'
}
);
say $out "Changed column 'patron_consent.type'";
},
};