Closed (fixed)
Project:
Drupal core
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2004 at 07:49 UTC
Updated:
4 Aug 2004 at 18:20 UTC
Upgrading an older Drupal site with the 2004-06-18 update leads to SQL error. It appears to be because the update is adding the same field twice.
INSERT INTO {variable} (name,value) VALUES ('node_sticky_project','s:1:"0";')
OK
INSERT INTO {variable} (name,value) VALUES ('node_sticky_project','s:1:"0";')
FAILED
user error: Duplicate entry 'node_sticky_project' for key 1
query: INSERT INTO variable (name,value) VALUES ('node_sticky_project','s:1:"0";') in
...\includes\database.mysql.inc on line 100.
Note: The site appears to update successfully in spite of this error, thus I'm not marking it as a critical priority bug.
Comments
Comment #1
Steven commentedFixed in CVS. The problem was the underscore in the project.module node types.
Check the settings for promoting/moderating content in the admin. Most likely a couple got reset back to defaults.
Comment #2
(not verified) commented