The database table creation statements set the uid column as an index. Since there should only be one row for a uid (user) the table should set the uid column as the PRIMARY KEY which will 1) enforce a unique value and 2) automatically make the column indexed.
Attached patch modifies the hook_install, adds some of the module variables to the hook_uninstall and adds a hook_update_1 function to drop the indexes and add the primary key.
| Comment | File | Size | Author |
|---|---|---|---|
| profile_setup.install.patch | 2.21 KB | jaydub |
Comments
Comment #1
thomjjames commentedappied to 5.x-4.x-dev release
thank you jaydub for all the clean up code!! :)