diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java index de04a84883..37ffe0e5ea 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java @@ -395,4 +395,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; + } }