mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 02:36:00 +00:00
fix(ScriptDrivedDeployer): avoid nested transactions
This commit is contained in:
@@ -128,7 +128,7 @@ export class ScriptDrivedDeployer {
|
|||||||
|
|
||||||
logger.debug(`Running ${category} script ${file.name}`);
|
logger.debug(`Running ${category} script ${file.name}`);
|
||||||
try {
|
try {
|
||||||
await this.driver.script(this.dbhan, file.text);
|
await this.driver.script(this.dbhan, file.text, { useTransaction: false });
|
||||||
await this.saveToJournal(file, category, hash);
|
await this.saveToJournal(file, category, hash);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(extractErrorLogData(err), `Error running ${category} script ${file.name}`);
|
logger.error(extractErrorLogData(err), `Error running ${category} script ${file.name}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user