From f553d76600e967b4492f03494f34170c8cf5d83e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 16 Apr 2018 14:09:03 -0300 Subject: [PATCH] Bug 11674: DBRev 17.12.00.031 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../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 diff --git a/Koha.pm b/Koha.pm index 01b2f4f7d0..c1b8da3253 100644 --- a/Koha.pm +++ b/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; diff --git a/installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql b/installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql deleted file mode 100644 index 5fb200c127..0000000000 --- a/installer/data/mysql/atomicupdate/bug_11674-config_for_marc_field_doc_urls.sql +++ /dev/null @@ -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'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 279953faca..615871a994 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/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. -- 2.39.5