HHH-9500: H2Dialect shoud not drop constraints

The constraints are automatically dropped when the table is also dropped.
Trying to drop a constraint on a table that doesn't exist present unnecessary error messages.
This commit is contained in:
George Gastaldi 2014-12-17 18:29:10 -02:00 committed by Andrea Boriero
parent 45511f10ae
commit 579675ab08
1 changed files with 7 additions and 0 deletions

View File

@ -427,4 +427,11 @@ public class H2Dialect extends Dialect {
public boolean supportsTuplesInSubqueries() { public boolean supportsTuplesInSubqueries() {
return false; return false;
} }
@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;
}
} }