tableExists Precondition Broken on H2 in Liquibase v4.33.0

Hallo, After upgrading Liquibase from version 4.31.1 to 4.33.0, we encountered an issue where the tableExists precondition no longer works correctly with the H2 database. Specifically, the precondition fails to detect existing tables, causing changesets that should be skipped to be executed instead.

During our investigation, we identified that issue #6774 (hasIgnoreNested method) introduced a bug affecting the tableExists precondition on H2. This behavior is similar to what was reported in Issue #6984, where changes to other preconditions were reverted due to similar problems.

We kindly request that the changes introduced in tableExistsPrecondition be reviewed and reverted, as was done for other preconditions in Issue #6984, to restore the expected functionality.

Thanks for bringing this to our attention @Tithin . Please file this as a GitHub issue here: GitHub · Where software is built . That’s the fastest path to resolution. Thanks!