Bug 8995: (QA follow-up) Convert db update to perl
[koha.git] / installer / data / mysql / atomicupdate / bug_8995.perl
1 $DBversion = 'XXX';    # will be replaced by the RM
2 if ( CheckVersion($DBversion) ) {
3     $dbh->do(q{
4         INSERT IGNORE INTO `systempreferences` (`variable`, `value`, `explanation`, `options`, `type`) VALUES
5           ('OpenURLResolverURL', '', 'URL of OpenURL Resolver', NULL, 'Free'),
6           ('OpenURLText', '', 'Text of OpenURL links (or image title if OpenURLImageLocation is defined)', NULL, 'Free'),
7           ('OpenURLImageLocation', '', 'Location of image for OpenURL links', NULL, 'Free'),
8           ('OPACShowOpenURL', '', 'Enable display of OpenURL links in OPAC search results and detail page', NULL, 'YesNo'),
9           ('OPACOpenURLItemTypes', '', 'Show the OpenURL link only for these item types', NULL, 'Free');
10     });
11
12     SetVersion($DBversion);
13     print
14 "Upgrade to $DBversion done (Bug 8995 - Add new preferences for OpenURLResolvers)\n";
15 }