hunk.code_window:             if (dataSource) await dataSource.destroy()
               PlatformTools.logCmdErr("Error during migration run:", err)
               process.exit(1)
           }
       }
   }
hunk.labels: keep keep replace keep keep keep keep
hunk.file_path: src/commands/MigrationRunCommand.ts
hunk.type: replace
file: import { DefaultNamingStrategy } from "../../../../src/naming-strategy/DefaultNamingStrategy"
  import { NamingStrategyInterface } from "../../../../src/naming-strategy/NamingStrategyInterface"
  import { camelCase } from "../../../../src/util/StringUtils"
  
  export class NamingStrategyUnderTest
      extends DefaultNamingStrategy
      implements NamingStrategyInterface
  {
      calledJoinTableColumnName: boolean[] = []
  
      calledJoinTableInverseColumnName: boolean[] = []
  
      joinTableColumnName(
          tableName: string,
          propertyName: string,
          columnName?: string,
      ): string {
          this.calledJoinTableColumnName.push(true)
          return camelCase(
              tableName +
                  "_" +
                  (columnName ? columnName : propertyName) +
                  "_forward",
          )
      }
  
      joinTableInverseColumnName(
          tableName: string,
          propertyName: string,
          columnName?: string,
      ): string {
          this.calledJoinTableInverseColumnName.push(true)
          return camelCase(
              tableName +
                  "_" +
                  (columnName ? columnName : propertyName) +
                  "_inverse",
          )
      }
  }
  