Closed (fixed)
Project:
Profile Setup
Version:
5.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2008 at 15:05 UTC
Updated:
1 Apr 2009 at 19:20 UTC
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!! :)