migrator: Use correct getMigrations (fixes merge conflict)
Created by: efritz
I think in a previous merge I accidentally went back to using the local version of the function. This uses the one that was extracted from the function scope.
Test plan
N/A.