While working on news and articles system for my project I have encountered an annoying problem with doctrine migrate task. It was giving me a bunch of errors related to indexes in the database tables and wasn't performing migrations correctly. In the beginning I thought it is me doing something wrong but after several approaches I've came to conclusion that this time I'm not a reason.