Received this error while updating to the latest rev -
user warning: Incorrect table definition; there can be only one auto column and it must be defined as a key query: ALTER TABLE drupal_login_security_track DROP INDEX id in /xxxxxx/xxxxxxx/drupal-6.12/includes/database.mysql-common.inc on line 448.
The status was -
Failed: ALTER TABLE {login_security_track} DROP INDEX id
Created bug report as "critical" due to effects on security and users
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | login_security_492800_1.patch | 1.08 KB | ilo |
Comments
Comment #1
ilo commentedI guess the error was introduced in the 1.9 revision of the install file, in the update_6001 function. Some database tasks were moved and leave the drop operation unfinished: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/login_secur...
the 1.8 revision of the function was something like this:
db_drop_primary_key($ret, 'login_security_track');
db_add_primary_key($ret, 'login_security_track', array('id'));
db_drop_index($ret, 'login_security_track', 'id');
and the 1.9 is
db_drop_primary_key($ret, 'login_security_track');
db_drop_index($ret, 'login_security_track', 'id');
Need to switch back this update function to the 1.8.. Deekayen?
This little patch would do, don't know if should I commit as the file was slightly modified for a D7 aproximation by deekayen, I'll wait for him in this issue.
Comment #2
ilo commentedComment #3
marcus0263 commentedExcellent, applied the new dev version and the patch, all is well.
Cheers!
Comment #4
deekayen commentedcommitted, but reopening #399390: database schema and operations clean up