diff --git a/packages/engines/mysql/MySqlAnalyser.js b/packages/engines/mysql/MySqlAnalyser.js index 737d132f..b2a86841 100644 --- a/packages/engines/mysql/MySqlAnalyser.js +++ b/packages/engines/mysql/MySqlAnalyser.js @@ -18,8 +18,8 @@ class MySqlAnalyser extends DatabaseAnalayser { async _runAnalysis() { const tables = await this.driver.query(this.pool, this.createQuery('tables')); const columns = await this.driver.query(this.pool, this.createQuery('columns')); - const pkColumns = await this.driver.query(this.pool, this.createQuery('primary_keys')); - const fkColumns = await this.driver.query(this.pool, this.createQuery('foreign_keys')); + const pkColumns = await this.driver.query(this.pool, this.createQuery('primaryKeys')); + const fkColumns = await this.driver.query(this.pool, this.createQuery('foreignCeys')); return this.mergeAnalyseResult({ tables: tables.rows.map((table) => ({ diff --git a/packages/engines/mysql/sql/foreign_keys.js b/packages/engines/mysql/sql/foreignKeys.js similarity index 100% rename from packages/engines/mysql/sql/foreign_keys.js rename to packages/engines/mysql/sql/foreignKeys.js diff --git a/packages/engines/mysql/sql/index.js b/packages/engines/mysql/sql/index.js index ae86e588..ac18120c 100644 --- a/packages/engines/mysql/sql/index.js +++ b/packages/engines/mysql/sql/index.js @@ -1,13 +1,13 @@ const columns = require('./columns'); const tables = require('./tables'); -const primary_keys = require('./primary_keys'); -const foreign_keys = require('./foreign_keys'); -const table_modifications = require('./table_modifications'); +const primaryKeys = require('./primaryKeys'); +const foreignKeys = require('./foreignKeys'); +const tableModifications = require('./tableModifications'); module.exports = { columns, tables, - primary_keys, - foreign_keys, - table_modifications, + primaryKeys, + foreignKeys, + tableModifications, }; diff --git a/packages/engines/mysql/sql/primary_keys.js b/packages/engines/mysql/sql/primaryKeys.js similarity index 100% rename from packages/engines/mysql/sql/primary_keys.js rename to packages/engines/mysql/sql/primaryKeys.js diff --git a/packages/engines/mysql/sql/table_modifications.js b/packages/engines/mysql/sql/tableModifications.js similarity index 100% rename from packages/engines/mysql/sql/table_modifications.js rename to packages/engines/mysql/sql/tableModifications.js