bug 3481 followup - fix database update
Set items.permanent_location to the current value of items.location - otherwise, the item shelving location could get blanked as existing items are checked in. Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
e40e11ab0c
commit
6f5797a315
1 changed files with 1 additions and 0 deletions
|
@ -2513,6 +2513,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
$DBversion = '3.01.00.043';
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do('ALTER TABLE items ADD COLUMN permanent_location VARCHAR(80) DEFAULT NULL AFTER location');
|
||||
$dbh->do('UPDATE items SET permanent_location = location');
|
||||
$dbh->do("INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'NewItemsDefaultLocation', '', '', 'If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )', '')");
|
||||
$dbh->do("INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'InProcessingToShelvingCart', '0', '', 'If set, when any item with a location code of PROC is ''checked in'', it''s location code will be changed to CART.', 'YesNo')");
|
||||
$dbh->do("INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'ReturnToShelvingCart', '0', '', 'If set, when any item is ''checked in'', it''s location code will be changed to CART.', 'YesNo')");
|
||||
|
|
Loading…
Reference in a new issue