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.

CommentFileSizeAuthor
profile_setup.install.patch2.21 KBjaydub

Comments

thomjjames’s picture

Status: Needs review » Fixed

appied to 5.x-4.x-dev release

thank you jaydub for all the clean up code!! :)

Status: Fixed » Closed (fixed)

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