When enabling the module (from this download http://ftp.drupal.org/files/projects/password_policy-5.x-1.0-alpha1.tar.gz) I get the following errors

* user warning: Key column 'id' doesn't exist in table query: CREATE TABLE password_policy_users ( uid int(10) unsigned NOT NULL default '0', pass varchar(32) NOT NULL default '', created int(11) NOT NULL default '0', KEY (id) ) /*!40100 DEFAULT CHARACTER SET utf8 */ in /var/www/sites/mandg.dev.brighttalk.net/drupal-5.15-mandg-1.1/includes/database.mysql.inc on line 174.
* user warning: Key column 'id' doesn't exist in table query: CREATE TABLE password_policy_expiration ( uid int(10) unsigned NOT NULL, warning int(11) default NULL, blocked int(11) default NULL, unblocked int(11) default NULL, KEY (id) ) /*!40100 DEFAULT CHARACTER SET utf8 */ in /var/www/sites/mandg.dev.brighttalk.net/drupal-5.15-mandg-1.1/includes/database.mysql.inc on line 174.

This is because the KEY (id) should be KEY (uid) for the tables password_policy_expiration and password_policy_user I made a patch file for this fix.

CommentFileSizeAuthor
password_policy.install.patch146 bytescabbiepete

Comments

miglius’s picture

Status: Needs review » Fixed

This is already fixed in the DRUPAL-5 branch. Please use this branch from the cvs.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.