HHH-13711: drop constraints enabled for H2

This commit is contained in:
Romain Moreau 2019-11-08 13:56:19 +01:00 committed by Steve Ebersole
parent 486addab0c
commit b35ccc8e37
1 changed files with 2 additions and 4 deletions

View File

@ -435,10 +435,8 @@ public class H2Dialect extends Dialect {
}
@Override
public boolean dropConstraints() {
// We don't need to drop constraints before dropping tables, that just leads to error
// messages about missing tables when we don't have a schema in the database
return false;
public boolean supportsIfExistsAfterAlterTable() {
return true;
}
@Override