Adding missing columns and indexes.