Koha/installer/data/mysql/db_revs/220600003.pl
Tomas Cohen Arazi bccec37915
Bug 30924: DBRev 22.06.00.003
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-16 11:36:43 -03:00

16 lines
701 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => 30924,
description => "Add missing RecallCancellation option to branchtransfers.reason ENUM",
up => sub {
my ($args) = @_;
my ($dbh) = @$args{qw(dbh)};
# Add RecallCancellation ENUM option to branchtransfers.reason
$dbh->do(q{
ALTER TABLE branchtransfers MODIFY COLUMN reason
ENUM('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve','TransferCancellation','Recall','RecallCancellation') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer'
});
},
};