Koha/installer/data/mysql/db_revs/231200040.pl
Katrin Fischer 3da65483f3
Bug 32610: DBRev 23.12.00.040
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-30 17:09:53 +02:00

17 lines
584 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "32610",
description => "Add option for additional patron attributes of type date",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( column_exists( 'borrower_attribute_types', 'is_date' ) ) {
$dbh->do(
q{ALTER TABLE borrower_attribute_types
ADD COLUMN `is_date` tinyint(1) NOT NULL default 0 AFTER `unique_id`}
);
say $out "Added column 'borrower_attribute_types.is_date'";
}
},
};