postgres requires a more strict ordering for migration