From 77c9563f1ed1c89266f4308cff165a78782289f6 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Thu, 4 Jun 2015 13:58:17 +1200 Subject: [PATCH] Updating version to 3.20.00.001 --- Koha.pm | 2 +- .../data/mysql/atomicupdate/bug-14285.sql | 29 ------------------- installer/data/mysql/updatedatabase.pl | 24 +++++++++++++++ 3 files changed, 25 insertions(+), 30 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug-14285.sql diff --git a/Koha.pm b/Koha.pm index aa33b28a90..5373034071 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.20.00.000"; +$VERSION = "3.20.00.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug-14285.sql b/installer/data/mysql/atomicupdate/bug-14285.sql deleted file mode 100644 index 9c71a9e7e4..0000000000 --- a/installer/data/mysql/atomicupdate/bug-14285.sql +++ /dev/null @@ -1,29 +0,0 @@ -INSERT IGNORE INTO language_subtag_registry( subtag, type, description, added) -VALUES ( 'IN', 'region', 'India','2015-05-28'); - -INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) -VALUES ( 'IN', 'region', 'en', 'India'); - -INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) -VALUES ( 'IN', 'region', 'bn', 'ভারত'); - --- $DBversion = "3.21.00.XXX"; --- if ( CheckVersion($DBversion) ) { --- $dbh->do(q| --- INSERT IGNORE INTO language_subtag_registry( subtag, type, description, added) --- VALUES ( 'IN', 'region', 'India','2015-05-28'); --- |); --- --- $dbh->do(q| --- INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) --- VALUES ( 'IN', 'region', 'en', 'India'); --- |); --- --- $dbh->do(q| --- INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) --- VALUES ( 'IN', 'region', 'bn', 'ভারত'); --- |); --- --- print "Upgrade to $DBversion done (Bug 14285: Add new region India)\n"; --- SetVersion ($DBversion); --- } diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1dd8c0b066..afa67a7a24 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10462,6 +10462,30 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.20.00.001"; +if ( CheckVersion($DBversion) ) { + $dbh->do( + q| + INSERT IGNORE INTO language_subtag_registry( subtag, type, description, added) + VALUES ( 'IN', 'region', 'India','2015-05-28'); + | + ); + $dbh->do( + q| + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ( 'IN', 'region', 'en', 'India'); + | + ); + $dbh->do( + q| + INSERT IGNORE INTO language_descriptions(subtag, type, lang, description) + VALUES ( 'IN', 'region', 'bn', 'ভারত'); + | + ); + print "Upgrade to $DBversion done (Bug 14285: Add new region India)\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.5