@slonik/migrator is not compatible with slonik 30+, so you cannot create a migration. To reproduce just delete node_modules folder and try to npm install packages.