--- bio.install 2009-03-10 14:37:41.000000000 -0400 +++ bio.install.patched 2009-03-10 14:37:37.000000000 -0400 @@ -100,6 +100,25 @@ function bio_update_5100() { return $ret; } +/** + * Creates an index on the uid column of the bio table + **/ +function bio_update_5101() { + $ret = array(); + + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + $ret[] = update_sql("ALTER TABLE {bio} ADD INDEX (uid)"); + break; + case 'pgsql': + $ret[] = update_sql("CREATE INDEX uid_idx ON {bio} (uid)"); + break; + } + + return $ret; +} + /** * @} End of "defgroup bio-updates-5.x-1.x" */ @@ -115,4 +134,4 @@ function bio_uninstall() { variable_del('bio_profile_takeover'); variable_del('bio_regstration_form'); variable_del('bio_regstration_form_fields'); -} \ No newline at end of file +}