diff --git a/integration-tests/__tests__/deploy-database.spec.js b/integration-tests/__tests__/deploy-database.spec.js index 72578d0bd..2ef19b9dd 100644 --- a/integration-tests/__tests__/deploy-database.spec.js +++ b/integration-tests/__tests__/deploy-database.spec.js @@ -106,7 +106,9 @@ async function testDatabaseDeploy(engine, conn, driver, dbModelsYaml, options) { for (const loadedDbModel of dbModelsYaml) { if (_.isString(loadedDbModel)) { - await driver.script(conn, formatQueryWithoutParams(driver, loadedDbModel)); + await driver.script(conn, formatQueryWithoutParams(driver, loadedDbModel), { + useTransaction: engine.runDeployInTransaction, + }); } else { const { sql, isEmpty } = await generateDeploySql({ systemConnection: conn.isPreparedOnly ? undefined : conn,