Bug 10120: (QA followup) avoid raising warnings on upgrade
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 27 Oct 2015 15:07:27 +0000 (12:07 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 27 Oct 2015 15:07:27 +0000 (12:07 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/updatedatabase.pl

index 03ae397..273611e 100755 (executable)
@@ -7019,13 +7019,11 @@ if(CheckVersion($DBversion)) {
 
 $DBversion = "3.13.00.006";
 if ( CheckVersion($DBversion) ) {
-    $dbh->do(
-        q{
-INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CalculateFinesOnReturn','1','Switch to control if overdue fines are calculated on return or not', '', 'YesNo');
-}
-    );
-    print
-"Upgrade to $DBversion done (Bug 10120 - Fines on item return controlled by a systempreference)\n";
+    $dbh->do(q{
+        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+        VALUES ('CalculateFinesOnReturn','1','Switch to control if overdue fines are calculated on return or not', '', 'YesNo')
+    });
+    print "Upgrade to $DBversion done (Bug 10120: Fines on item return controlled by a systempreference)\n";
     SetVersion($DBversion);
 }