From faa799c8ea2329e7ca1b54c9414a060bc8a2a840 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Mon, 31 May 2021 17:07:48 +0200 Subject: [PATCH] fix(MySQL): missing schema altering tables in some conditions --- src/main/libs/clients/MySQLClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/libs/clients/MySQLClient.js b/src/main/libs/clients/MySQLClient.js index 9d85035a..07cec883 100644 --- a/src/main/libs/clients/MySQLClient.js +++ b/src/main/libs/clients/MySQLClient.js @@ -1117,7 +1117,7 @@ export class MySQLClient extends AntaresCore { options } = params; - let sql = `ALTER TABLE \`${this._schema}\`.\`${table}\` `; + let sql = `ALTER TABLE \`${this._schema || params.options.schema}\`.\`${table}\` `; const alterColumns = []; // OPTIONS