hunk.code_window:                         (!dbUniqueKeys.find(key => key["constraint_name"] === dbIndex["index_name"]));
                   })
                   .map(dbIndex => dbIndex["index_name"])
                   .filter((value, index, self) => self.indexOf(value) === index) // unqiue
                   .map(dbIndexName => {
                       const columnNames = dbIndices
                           .filter(dbIndex => dbIndex["table_name"] === tableSchema.name && dbIndex["index_name"] === dbIndexName)
                           .map(dbIndex => dbIndex["column_name"]);
                       return new IndexSchema(dbTable["TABLE_NAME"], dbIndexName, columnNames, false /* todo: uniqueness */);
                   });
               return tableSchema;
           });
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace keep keep keep keep
hunk.after_edit:                     const dbIndicesInfos = dbIndices
                           .filter(dbIndex => dbIndex["table_name"] === tableSchema.name && dbIndex["index_name"] === dbIndexName);
                       const columnPositions = dbIndicesInfos[0]["indkey"].split(" ")
                           .map((x: string) => parseInt(x));
                       const columnNames = columnPositions
                           .map((pos: number) => dbIndicesInfos.find(idx => idx.attnum === pos)!["column_name"]);
                       return new IndexSchema(dbTable["TABLE_NAME"], dbIndexName, columnNames, dbIndicesInfos[0]["is_unique"]);
  
hunk.file_path: src/driver/postgres/PostgresQueryRunner.ts
hunk.type: replace
file: import {Column} from "../../../../../../src/decorator/columns/Column";
  import {TableInheritance} from "../../../../../../src/decorator/entity/TableInheritance";
  import {DiscriminatorColumn} from "../../../../../../src/decorator/columns/DiscriminatorColumn";
  import {Entity} from "../../../../../../src/decorator/entity/Entity";
  import {PrimaryGeneratedColumn} from "../../../../../../src/decorator/columns/PrimaryGeneratedColumn";
  
  @Entity()
  @TableInheritance("class-table")
  @DiscriminatorColumn({ name: "type", type: "varchar" })
  export class Person {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      name: string;
  
  }
  