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:
parent
e8cf997eb3
commit
84918aaf15
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue