Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hkjeffchan committed Jan 7, 2019
1 parent 3bd211c commit dac3e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/mysql/MysqlQueryRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
}), dbIndex => dbIndex["INDEX_NAME"]);

table.indices = tableIndexConstraints.map(constraint => {
const indices = dbIndices.filter(index => index["INDEX_NAME"] === constraint["INDEX_NAME"]);
const indices = dbIndices.filter(index => index["INDEX_NAME"] === constraint["INDEX_NAME"] && table.name === index.TABLE_NAME);
return new TableIndex(<TableIndexOptions>{
table: table,
name: constraint["INDEX_NAME"],
Expand Down

0 comments on commit dac3e07

Please sign in to comment.