Fixed migration script so it applies other migrations not created at the same time.