Chapter 6. Working with Users, Page 127
Sat, 10/25/2008 - 9:09pm — ericx
Location on the page:
near end of listing 6-4
Chapter:
6. Working with Users
Error:
Schema for login history lists a single index for the table as:
'index' => array('uid'),
Correction:
Since we are maintaining a history of multiple logins for each user, 'uid' cannot be a primary or unique key. A general index is designated:
'indexes' => array(
'uid' => array('uid'),
),
Description of the Error:
Drupal Schema API syntax error.
