@@ -, +, @@ --- Koha.pm | 2 +- .../atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql | 3 --- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql --- a/Koha.pm +++ a/Koha.pm @@ -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 = "17.12.00.030"; +$VERSION = "17.12.00.031"; sub version { return $VERSION; --- a/installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql +++ a/installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql @@ -1,3 +0,0 @@ - -INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) -VALUES ('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. \"MARC21\" or \"UNIMARC\". {FIELD} = field number, eg. \"000\" or \"048\". {LANG} = user language, eg. \"en\" or \"fi-FI\"', 'free'); --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -15829,6 +15829,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 19882 - Add system preference NovelistSelectStaffProfile)\n"; } +$DBversion = '17.12.00.031'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) + VALUES ('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. \"MARC21\" or \"UNIMARC\". {FIELD} = field number, eg. \"000\" or \"048\". {LANG} = user language, eg. \"en\" or \"fi-FI\"', 'free') + |); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 11674 - Add system preference MarcFieldDocURL)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. --