hunk.code_window:             await dataSource.undoLastMigration(options)
               await dataSource.destroy()
           } catch (err) {
               if (dataSource) await dataSource.destroy()
  
hunk.labels: keep keep add keep keep
hunk.after_edit:             PlatformTools.logCmdErr("Error during migration revert:", err)
  
hunk.file_path: src/commands/MigrationRevertCommand.ts
hunk.type: add
file: import { Column } from "../../../../../src/decorator/columns/Column"
  import { JoinColumn } from "../../../../../src/decorator/relations/JoinColumn"
  import { OneToOne } from "../../../../../src/decorator/relations/OneToOne"
  import { User } from "./User"
  import { Subcounters } from "./Subcounters"
  
  export class Counters {
      @Column()
      code: number
  
      @Column()
      likes: number
  
      @Column()
      comments: number
  
      @Column()
      favorites: number
  
      @Column(() => Subcounters, { prefix: "subcnt" })
      subcounters: Subcounters
  
      @OneToOne(() => User, (user) => user.likedPost)
      @JoinColumn()
      likedUser: User
  }
  