Koha/installer/data/mysql/db_revs/210600003.pl
Fridolin Somers fd1c259c0d Bug 30185: Missing return in db rev 210600003.pl
db rev files are constructed with a return {...}, db rev 210600003.pl is missing return word.
I don't know if it can impact the db upgrade but we should fix it for consistency.

To test upgrade from a version 21.05 and check db rev is applied.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-01 22:47:47 -10:00

33 lines
1,023 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "24434",
description => "Add 'WrongTransfer' to branchtransfers.cancellation_reason enum",
up => sub {
my ($args) = @_;
my $dbh = $args->{dbh};
# add 'wrongtransfer' to branchtransfers cancellation_reason enum
$dbh->do(
q{
alter table
`branchtransfers`
modify column
`cancellation_reason` enum(
'Manual',
'StockrotationAdvance',
'StockrotationRepatriation',
'ReturnToHome',
'ReturnToHolding',
'RotatingCollection',
'Reserve',
'LostReserve',
'CancelReserve',
'ItemLost',
'WrongTransfer'
) DEFAULT NULL
after `reason`
}
);
},
}