diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java b/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java index 0887855240..0b697c5894 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java @@ -1216,7 +1216,7 @@ public class Configuration implements Serializable { String constraintString = uniqueKey.sqlCreateString( dialect, mapping, tableCatalog, tableSchema ); if ( constraintString != null && !constraintString.isEmpty() ) if ( constraintMethod.equals( UniqueConstraintSchemaUpdateStrategy.DROP_RECREATE_QUIETLY ) ) { - String constraintDropString = uniqueKey.sqlDropString( dialect, tableCatalog, tableCatalog ); + String constraintDropString = uniqueKey.sqlDropString( dialect, tableCatalog, tableSchema ); scripts.add( new SchemaUpdateScript( constraintDropString, true) ); } scripts.add( new SchemaUpdateScript( constraintString, true) );