|
|
|
@ -613,13 +613,16 @@ public abstract class AbstractSchemaMigrator implements SchemaMigrator {
|
|
|
|
|
ExecutionOptions options, |
|
|
|
|
GenerationTarget... targets) { |
|
|
|
|
if ( !StringHelper.isEmpty( sqlString ) ) { |
|
|
|
|
String formattedSql = null; |
|
|
|
|
for ( GenerationTarget target : targets ) { |
|
|
|
|
try { |
|
|
|
|
target.accept( formatter.format( sqlString ) ); |
|
|
|
|
formattedSql = formatter.format( sqlString ); |
|
|
|
|
target.accept( formattedSql ); |
|
|
|
|
} |
|
|
|
|
catch (CommandAcceptanceException e) { |
|
|
|
|
if ( !quiet ) { |
|
|
|
|
options.getExceptionHandler().handleException( e ); |
|
|
|
|
log.warnf( formattedSql ); |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|