Adding missing database indexes for foreign keys and STI fields.
Authored by: edavis10 2009-10-17
Parent: [r2927]
Child: [r2929]