Bug 24474: DBRev 19.12.00.061
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
416ae07688
commit
2823fee5cf
2
Koha.pm
2
Koha.pm
|
|
@ -29,7 +29,7 @@ use vars qw{ $VERSION };
|
|||
# - #4 : the developer version. The 4th number is the database subversion.
|
||||
# used by developers when the database changes. updatedatabase take care of the changes itself
|
||||
# and is automatically called by Auth.pm when needed.
|
||||
$VERSION = "19.12.00.060";
|
||||
$VERSION = "19.12.00.061";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do(q{
|
||||
UPDATE
|
||||
systempreferences
|
||||
SET
|
||||
options = "batchmod|moredetail|cronjob|additem|pendingreserves|onpayment"
|
||||
WHERE
|
||||
variable = "MarkLostItemsAsReturned"
|
||||
});
|
||||
|
||||
my $lost_item_returned = C4::Context->preference("MarkLostItemsAsReturned");
|
||||
my @set = split( ",", $lost_item_returned );
|
||||
push @set, 'onpayment';
|
||||
$lost_item_returned = join( ",", @set );
|
||||
|
||||
$dbh->do(qq{
|
||||
UPDATE
|
||||
systempreferences
|
||||
SET
|
||||
value = "$lost_item_returned"
|
||||
WHERE
|
||||
variable = "MarkLostItemsAsReturned"
|
||||
});
|
||||
|
||||
SetVersion($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 24474 - Add `onpayment` option to MarkLostItemsAsReturned)\n";
|
||||
}
|
||||
|
|
@ -21397,6 +21397,34 @@ if( CheckVersion( $DBversion ) ) {
|
|||
NewVersion( $DBversion, 23204, "Change enum order for marc_type in search_marc_map to fix sorting");
|
||||
}
|
||||
|
||||
$DBversion = '19.12.00.061';
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do(q{
|
||||
UPDATE
|
||||
systempreferences
|
||||
SET
|
||||
options = "batchmod|moredetail|cronjob|additem|pendingreserves|onpayment"
|
||||
WHERE
|
||||
variable = "MarkLostItemsAsReturned"
|
||||
});
|
||||
|
||||
my $lost_item_returned = C4::Context->preference("MarkLostItemsAsReturned");
|
||||
my @set = split( ",", $lost_item_returned );
|
||||
push @set, 'onpayment';
|
||||
$lost_item_returned = join( ",", @set );
|
||||
|
||||
$dbh->do(qq{
|
||||
UPDATE
|
||||
systempreferences
|
||||
SET
|
||||
value = "$lost_item_returned"
|
||||
WHERE
|
||||
variable = "MarkLostItemsAsReturned"
|
||||
});
|
||||
|
||||
NewVersion( $DBversion, 24474, "Add `onpayment` option to MarkLostItemsAsReturned");
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue