diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index cd00164896..ffe2bece69 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12835,7 +12835,16 @@ if ( CheckVersion($DBversion) ) { $DBversion = "16.06.00.016"; if ( CheckVersion($DBversion) ) { $dbh->do(q{ - INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OPACSuggestionMandatoryFields','title','','Define the mandatory fields for a patron purchase suggestions made via OPAC.','multiple'); + update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'YYYY', '<>') where defaultvalue like "%YYYY%" and defaultvalue not like "%<>%"; + }); + $dbh->do(q{ + update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'MM', '<>') where defaultvalue like "%MM%" and defaultvalue not like "%<>%"; + }); + $dbh->do(q{ + update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'DD', '<
>') where defaultvalue like "%DD%" and defaultvalue not like "%<
>%"; + }); + $dbh->do(q{ + update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'user', '<>') where defaultvalue like "%user%" and defaultvalue not like "%<>%"; }); print "Upgrade to $DBversion done (Bug 7045 - Default-value substitution inconsistent)\n";