From 7e07fa5d124bce71d559c5830df1ecab28ccc348 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 22 Jan 2010 13:35:40 +0000 Subject: [PATCH] 102 needs to be an update not an insert --- installer/data/mysql/updatedatabase.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 35dee1fdbc..6b0504ba19 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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); } -- 2.39.5