mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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
493808ddc1
commit
7854bc6769
@ -427,4 +427,11 @@ public boolean doesReadCommittedCauseWritersToBlockReaders() {
|
||||
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…
x
Reference in New Issue
Block a user