Closes OW-23227. This merge request exports the migrator function and its types. The main reason is to allow parent apps to use SQL migrations in test code. To do that, I've had to export code in the package, not just the CLI interface like the previous version.