Bug 18110 - DBRev 16.12.00.028
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 12:53:00 +0000 (08:53 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 12:53:00 +0000 (08:53 -0400)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug18110_updated_AddressFormat.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 5078edc..07489a9 100644 (file)
--- 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 = "16.12.00.027";
+$VERSION = "16.12.00.028";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug18110_updated_AddressFormat.sql b/installer/data/mysql/atomicupdate/bug18110_updated_AddressFormat.sql
deleted file mode 100644 (file)
index 5cd738c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-UPDATE systempreferences  SET options = 'us|de|fr' WHERE variable = 'AddressFormat';
index 3c2ccc1..a7c3747 100755 (executable)
@@ -14281,6 +14281,16 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 12461 - Add patron clubs feature)\n";
 }
 
+$DBversion = '16.12.00.028';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        UPDATE systempreferences  SET options = 'us|de|fr' WHERE variable = 'AddressFormat';
+    });
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 18110 - Adds FR to the syspref AddressFormat)\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.