mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
fix: knex transaction error on adding the migrations in migration folder - postgres
This commit is contained in:
parent
86e57e17f4
commit
abbdc9fad0
@ -7,7 +7,7 @@ const { Umzug } = require('umzug');
|
||||
const createStorage = require('./storage');
|
||||
|
||||
const wrapTransaction = db => fn => () =>
|
||||
db.getConnection().transaction(trx => Promise.resolve(fn(trx)));
|
||||
db.connection.transaction(trx => Promise.resolve(fn(trx)));
|
||||
|
||||
// TODO: check multiple commands in one sql statement
|
||||
const migrationResolver = ({ name, path, context }) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user