Bug 4041: DBRev 3.19.00.032
authorTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 29 Apr 2015 14:30:34 +0000 (11:30 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 29 Apr 2015 14:55:17 +0000 (11:55 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 348e6a8..a354b9f 100755 (executable)
@@ -9980,14 +9980,6 @@ if ( CheckVersion($DBversion) ) {
     print "Upgrade to $DBversion done (Bug 9580: Cover image from Coce, a remote image URL cache)\n";
     SetVersion($DBversion);
 }
-$DBversion = "XXX";
-if ( CheckVersion($DBversion) ) {
-    $dbh->do(q|
-        INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AddressFormat','us','Choose format to display postal addresses',NULL,'Choice')
-    |);
-    print "Upgrade to $DBversion done (Bug 4041: Address Format as a I18N/L10N system preference\n";
-    SetVersion ($DBversion);
-}
 
 $DBversion = "3.19.00.020";
 if ( CheckVersion($DBversion) ) {
@@ -10275,6 +10267,16 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.19.00.032";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+        VALUES('AddressFormat','us','Choose format to display postal addresses','','Choice')
+    |);
+    print "Upgrade to $DBversion done (Bug 4041: Address Format as a I18N/L10N system preference\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.
index 2f845e8..cc162ae 100644 (file)
@@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.19.00.031';
+    our $VERSION = '3.19.00.032';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install