|
|
|
@ -754,7 +754,7 @@ export default class KnexMigratorv2 {
|
|
|
|
|
const vm = this; |
|
|
|
|
|
|
|
|
|
const trx = sqlClient.knex.isTransaction |
|
|
|
|
? sqlClient.knex as Knex.Transaction |
|
|
|
|
? (sqlClient.knex as Knex.Transaction) |
|
|
|
|
: await sqlClient.knex.transaction(); |
|
|
|
|
try { |
|
|
|
|
for (const query of upStatements) { |
|
|
|
@ -921,7 +921,7 @@ export default class KnexMigratorv2 {
|
|
|
|
|
const vm = this; |
|
|
|
|
|
|
|
|
|
const trx = sqlClient.knex.isTransaction |
|
|
|
|
? sqlClient.knex as Knex.Transaction |
|
|
|
|
? (sqlClient.knex as Knex.Transaction) |
|
|
|
|
: await sqlClient.knex.transaction(); |
|
|
|
|
try { |
|
|
|
|
for (const query of downStatements) { |
|
|
|
|