H2Database.supportsDropTableCascadeConstraints() returns false

Description

H2 database does support CASCADE when dropping tables, see: http://www.h2database.com/html/grammar.html#drop_table

In contrast, liquibase.database.core.H2Database.supportsDropTableCascadeConstraints() returns false.

As a side effect, this leads to many warning when using dropAll() on h2:

1 WARN liquibase Database does not support drop with cascade

Please change H2Database.supportsDropTableCascadeConstraints() to return true.

PS: From a code quality perspective, liquibase.database.AbstractJdbcDatabase.supportsDropTableCascadeConstraints() should not use instanceof. Each database implementation should correctly implement this method on its own.

Environment

Windows 7 x64
h2 1.4.181
java version "1.7.0_51"

Status

Assignee

Unassigned

Reporter

Falko Modler

Labels

None

Components

Fix versions

Affects versions

3.2.2

Priority

Minor