postgre - analyse foreign keys

This commit is contained in:
Jan Prochazka
2020-05-16 09:34:28 +02:00
parent 7d6008a441
commit 942f22f1a3
6 changed files with 57 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ class MySqlAnalyser extends DatabaseAnalayser {
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('primaryKeys'));
const fkColumns = await this.driver.query(this.pool, this.createQuery('foreignCeys'));
const fkColumns = await this.driver.query(this.pool, this.createQuery('foreignKeys'));
return this.mergeAnalyseResult({
tables: tables.rows.map((table) => ({