Browse Source

Merge pull request #6631 in CORE/base-third from feature/x to bugfix/11.0

* commit 'c24ebac614fbcfb3f97bb001e42aa0df5536ac9f':
  REPORT-78654 迁移报错优化
  REPORT-78654 迁移报错优化
bugfix/11.0
superman 2 years ago
parent
commit
5d3b68db5b
  1. 5
      fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java

5
fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java

@ -613,12 +613,15 @@ 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 ) {
log.warnf( formattedSql );
options.getExceptionHandler().handleException( e );
}
return false;

Loading…
Cancel
Save