[api] fix the latest migration to the actual code

I screwed that up and test suite don't test migrations ;(