Bug 14783: (follow-up) Fix problematic db_rev

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2022-10-18 09:02:44 -03:00
parent ae986b992d
commit ab1e0a5d6a
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -13,9 +13,9 @@ return {
}); });
$dbh->do(q{ $dbh->do(q{
UPDATE systempreferences SET value = (SELECT CASE WHEN value = 1 THEN 'intransit' ELSE '' END UPDATE systempreferences
FROM systempreferences SET value=(SELECT CASE WHEN value=1 THEN 'intransit' ELSE '' END FROM systempreferences WHERE variable='OPACInTransitHoldPickupLocationChange')
WHERE variable = 'OPACInTransitHoldPickupLocationChange') WHERE variable='OPACAllowUserToChangeBranch'
}); });
say $out "Added new system preference 'OPACAllowUserToChangeBranch'"; say $out "Added new system preference 'OPACAllowUserToChangeBranch'";