HHH-8496 TableCatalog and TableSchema arguments mistaken in DB update-script.

This commit is contained in:
Brett Meyer 2013-09-12 10:43:08 -04:00
parent d0b556ece6
commit 580af7e61b
1 changed files with 1 additions and 1 deletions

View File

@ -1234,7 +1234,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) );