Koha/installer/data/mysql/db_revs/221200004.pl
Tomas Cohen Arazi a637666d3e
Bug 30642: Fix dbrev permissions
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-14 09:41:47 -03:00

18 lines
No EOL
567 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "30642",
description => "Record whether a renewal has been done manually or automatically.",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'checkout_renewals', 'renewal_type' ) ) {
$dbh->do(q{
ALTER TABLE checkout_renewals ADD COLUMN `renewal_type` enum('Automatic', 'Manual') NOT NULL DEFAULT 'Manual' AFTER `timestamp`
});
say $out "Added column 'checkout_renewals.column_name'";
}
},
};