This commit is contained in:
Jan Prochazka 2020-05-16 08:58:16 +02:00
parent 83e3f8b1d8
commit 7d6008a441
5 changed files with 8 additions and 8 deletions

View File

@ -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) => ({

View File

@ -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,
};