hunk.code_window:                         }
                           return Promise.resolve(undefined);
                       } else {
                           return new IndexSchema(dbTable["name"], dbIndex!["name"], indexColumns, dbIndex!["unique"] === "1");
                       }
                   });
               const indices = await Promise.all(indicesPromises);
               tableSchema.indices = indices.filter(index => !!index) as IndexSchema[];
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:                         const isUnique = dbIndex!["unique"] === "1" || dbIndex!["unique"] === 1;
                           return new IndexSchema(dbTable["name"], dbIndex!["name"], indexColumns, isUnique);
  
hunk.file_path: src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts
hunk.type: replace
file: import {Column, PrimaryGeneratedColumn} from "../../../src/index";
  import {TreeLevelColumn} from "../../../src/decorator/tree/TreeLevelColumn";
  import {ClosureEntity} from "../../../src/decorator/entity/ClosureEntity";
  import {TreeParent} from "../../../src/decorator/tree/TreeParent";
  import {TreeChildren} from "../../../src/decorator/tree/TreeChildren";
  
  @ClosureEntity("sample22_category")
  export class Category {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      name: string;
      
      @TreeParent()
      parentCategory: Category;
  
      @TreeChildren({ cascadeInsert: true, cascadeUpdate: true })
      childCategories: Category[];
  
      @TreeLevelColumn()
      level: number;
  
      // todo:
      // @RelationsCountColumn()
      // categoriesCount: number;
  
  }