Bug 14457: DBRev 18.12.00.047

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2019-04-16 13:14:17 +00:00
parent 8e77287b9b
commit fc6b7e5c3e
3 changed files with 13 additions and 3 deletions

View File

@ -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 = "18.12.00.046";
$VERSION = "18.12.00.047";
sub version {
return $VERSION;

View File

@ -1,2 +0,0 @@
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free');
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This it the base URL for the Libris spellchecking API.',NULL,'Free');

View File

@ -18012,6 +18012,18 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 22695 - Remove non-XSLT search results view from the staff client)\n";
}
$DBversion = '18.12.00.047';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisKey', '', 'This key must be obtained at http://api.libris.kb.se/. It is unique for the IP of the server.', NULL, 'Free');
|);
$dbh->do(q|
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('LibrisURL', 'http://api.libris.kb.se/bibspell/', 'This is the base URL for the Libris spellchecking API.',NULL,'Free');
|);
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 14557: Add Libris spellchecking system preferences)\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.