102 needs to be an update not an insert
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 22 Jan 2010 13:35:40 +0000 (13:35 +0000)
committerColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 25 Jan 2010 09:30:14 +0000 (09:30 +0000)
installer/data/mysql/updatedatabase.pl

index 35dee1f..6b0504b 100755 (executable)
@@ -3306,7 +3306,9 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
 }
 $DBversion = "3.01.00.102";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
-       $dbh->do("INSERT INTO permissions (module_bit, code, description) VALUES (9, 'edit_catalogue', 'Edit catalog (Modify bibliographic/holdings data)')");
+    $dbh->do(
+    "UPDATE permissions set description = 'Edit catalog (Modify bibliographic/holdings data)' where module_bit = 9 and code = 'edit_catalogue'"
+    );
        print "Upgrade done (fixed spelling error in edit_catalogue permission)\n";
     SetVersion ($DBversion);
 }