From 0c3a2fb0478514a8b30496eef7aa5617f7c169d4 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 28 Jun 2020 21:28:14 +0200 Subject: [PATCH] fix --- packages/engines/mysql/MySqlAnalyser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/engines/mysql/MySqlAnalyser.js b/packages/engines/mysql/MySqlAnalyser.js index d448a46d..e963a5ec 100644 --- a/packages/engines/mysql/MySqlAnalyser.js +++ b/packages/engines/mysql/MySqlAnalyser.js @@ -68,7 +68,7 @@ class MySqlAnalyser extends DatabaseAnalayser { if (typeField == 'views') return [pureName]; } if (this.modifications) { - return this.modifications.filter((x) => x.objectTypeField == 'views').map((x) => x.newName); + return this.modifications.filter((x) => x.objectTypeField == 'views').map((x) => x.newName.pureName); } return allViewNames; } @@ -157,6 +157,8 @@ class MySqlAnalyser extends DatabaseAnalayser { pureName: x.Name, })), ]); + + // console.log('allModifications', allModifications); // console.log('MOD - SRC', modifications); // console.log( // 'MODs',