Skip to content

fix(deps): require doctrine-bundle 1.0.5 so purges skip WordPress tables - #7

Merged
brianvarskonst merged 2 commits into
mainfrom
fix/require-wordpress-schema-filter
Nov 16, 2026
Merged

brianvarskonst merged 2 commits into
mainfrom
fix/require-wordpress-schema-filter

Conversation

@brianvarskonst

Copy link
Copy Markdown
Member

Problem

doctrine-bundle 1.0.5 added a schema filter that hides all WordPress tables from Doctrine schema tools; without it, schema updates and migration diffs dropped wp_* tables. This bundle's purger respects the same filter, but still allowed doctrine-bundle 1.0.3/1.0.4, and its test suite fails against 1.0.5 because the filter fails closed when no WordPress table prefix is known.

Fix

  • Require sympress/doctrine-bundle ^1.0.5 (lock updated, only that package changes).
  • Set DB_TABLE_PREFIX=wp_ in phpunit.xml.dist, the same way doctrine-bundle's own suite does.

Tests

composer validate --strict valid, composer qa green, PHPUnit 18/18. Before this change, 3 integration tests errored against doctrine-bundle 1.0.5.

Release: 1.1.1 (patch).

doctrine-bundle 1.0.5 hides WordPress tables from every DBAL schema
filter. The fixtures purger respects that filter, so requiring 1.0.5
guarantees `doctrine:fixtures:load` can no longer truncate `wp_*`
tables in a shared database.

The filter fails closed when it cannot determine the WordPress table
prefix, so the test suite, which runs without WordPress, now sets
DB_TABLE_PREFIX.
@brianvarskonst
brianvarskonst merged commit d979ca1 into main Nov 16, 2026
3 checks passed
@brianvarskonst
brianvarskonst deleted the fix/require-wordpress-schema-filter branch November 16, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant