From 995fb8c14f4d78122566588d095ece549c45ffa1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Sep 2017 16:49:06 -0300 Subject: [PATCH] Bug 13912: DBRev 17.05.00.010 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_13912.perl | 11 ----------- installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_13912.perl diff --git a/Koha.pm b/Koha.pm index 5a81a4dc54..c8a5290472 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.06.00.009"; +$VERSION = "17.06.00.010"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_13912.perl b/installer/data/mysql/atomicupdate/bug_13912.perl deleted file mode 100644 index 597e7502e4..0000000000 --- a/installer/data/mysql/atomicupdate/bug_13912.perl +++ /dev/null @@ -1,11 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) - VALUES ( - 'DefaultCountryField008','','', - 'Fill in the default country code for field 008 Range 15-17 of MARC21 - Place of publication, production, or execution. See MARC Code List for Countries','Free') - }); - SetVersion($DBversion); - print "Upgrade to $DBversion done (Bug 13912: System preference for default place of publication (country code) for field 008, range 15-17)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index bcfab3facb..ea42dabc42 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -14674,6 +14674,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 19344 - Reorder lang and login_attempts in the [deleted]borrowers tables)\n"; } +$DBversion = '17.06.00.010'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) + VALUES ( + 'DefaultCountryField008','','', + 'Fill in the default country code for field 008 Range 15-17 of MARC21 - Place of publication, production, or execution. See MARC Code List for Countries','Free') + }); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 13912 - System preference for default place of publication (country code) for field 008, range 15-17)\n"; +} + # 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.5