fixed syntax bug in migrations