  */
 public string function redoMigration(string version="") {
 	var currentVersion = getCurrentMigrationVersion();
+	local.settings = $getMigratorSettingsScope();
 	if (Len(arguments.version)) {
 		currentVersion = arguments.version;
 	}

							local.rv = local.rv & "#Chr(13)#-------- " & local.migration.cfcfile & " #RepeatString("-",Max(5,50-Len(local.migration.cfcfile)))##Chr(13)#";
							request.$wheelsMigrationOutput = "";
							request.$wheelsMigrationSQLFile = "#this.paths.sql#/#local.migration.cfcfile#_up.sql";
							if (application.wheels.writeMigratorSQLFiles) {
								FileWrite(request.$wheelsMigrationSQLFile, "");
							}
							local.migration.cfc.up();

 * Deletes a record to flag a version as not migrated.
 */
private void function $removeVersionAsMigrated(required string version) {
	local.settings = $getMigratorSettingsScope();
	$query(
		datasource=local.settings.dataSourceName,
		sql="DELETE FROM #local.settings.migratorTableName# WHERE version = '#$sanitiseVersion(arguments.version)#'"
	);
}

