Doctrine 1

Moving all ALTERS queries to the end of generated sql file (task build-sql)