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:
parent
45511f10ae
commit
579675ab08
|
@ -427,4 +427,11 @@ public class H2Dialect extends Dialect {
|
|||
public boolean supportsTuplesInSubqueries() {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue