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.

(cherry picked from commit 7854bc6769)
This commit is contained in:
George Gastaldi 2014-12-17 18:29:10 -02:00 committed by Gail Badner
parent e8cf997eb3
commit 84918aaf15
1 changed files with 7 additions and 0 deletions

View File

@ -395,4 +395,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;
}
} }