From d0618a9d31a1d98cc115564cb889bee1b958b358 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 7 Sep 2015 14:05:39 -0300 Subject: [PATCH] Bug 12357: DBRev 3.21.00.025 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_12357.sql | 5 ----- installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 6 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12357.sql diff --git a/Koha.pm b/Koha.pm index 336c1b36c5..811f83b01b 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 = "3.21.00.024"; +$VERSION = "3.21.00.025"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12357.sql b/installer/data/mysql/atomicupdate/bug_12357.sql deleted file mode 100644 index b9e3e70844..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12357.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO systempreferences (variable,value,options,explanation,type) -VALUES ('RisExportAdditionalFields', '', NULL , 'Define additional RIS tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.', 'textarea'); - -INSERT INTO systempreferences (variable,value,options,explanation,type) -VALUES ('BibtexExportAdditionalFields', '', NULL , 'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.', 'textarea'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index fcbd665a24..17fd3997de 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10843,6 +10843,20 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.21.00.025"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) + VALUES ('RisExportAdditionalFields', '', NULL , 'Define additional RIS tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.', 'textarea') + }); + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) + VALUES ('BibtexExportAdditionalFields', '', NULL , 'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.', 'textarea') + }); + print "Upgrade to $DBversion done (Bug 12357: Enhancements to RIS and BibTeX exporting)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.2