Database Migration / Deployment Questions

Hi, I’m using Strapi 4 and trying to create migration scripts. For sqlite it’s ok, but when I’m using postgres db I’m getting the error while running the app 'db.getConnection(…).transaction is not a function. Any ideas what’s the problem?