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: /**
   * ON_DELETE type to be used to specify delete strategy when some relation is being deleted from the database.
   */
  export type OnDeleteType =
      | "RESTRICT"
      | "CASCADE"
      | "SET NULL"
      | "DEFAULT"
      | "NO ACTION"
  