hunk.code_window:                 .filter((value, index, self) => self.indexOf(value) === index) // unqiue
                   .map(async dbIndexName => {
                       const dbIndex = dbIndices.find(dbIndex => dbIndex["name"] === dbIndexName);
                       const indexInfos: ObjectLiteral[] = await this.query(`PRAGMA index_info("${dbIndex!["name"]}")`);
                       const indexColumns = indexInfos.map(indexInfo => indexInfo["name"]);
                       // check if db index is generated by sqlite itself and has special use case
                       if (dbIndex!["name"].substr(0, "sqlite_autoindex".length) === "sqlite_autoindex") {
                           if (dbIndex!["unique"] === 1) { // this means we have a special index generated for a column
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:                     const indexColumns = indexInfos
                           .sort((indexInfo1, indexInfo2) => parseInt(indexInfo1["seqno"]) - parseInt(indexInfo2["seqno"]))
                           .map(indexInfo => indexInfo["name"]);
  
hunk.file_path: src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts
hunk.type: replace
file: import {Column, Entity} from "../../../src/index";
  import {ManyToMany} from "../../../src/decorator/relations/ManyToMany";
  import {PostCategory} from "./PostCategory";
  import {JoinTable} from "../../../src/decorator/relations/JoinTable";
  import {BaseObject} from "./BaseObject";
  
  @Entity("sample13_blog")
  export class Blog extends BaseObject {
  
      @Column()
      text: string;
  
      @ManyToMany(type => PostCategory, category => category.posts, {
          cascadeInsert: true,
          cascadeUpdate: true
      })
      @JoinTable()
      categories: PostCategory[] = [];
  
  }