Skip to content

Conversation

@dereuromark
Copy link
Owner

Summary

  • Support both the legacy queue_phinxlog table (Migrations plugin 4.x) and the new cake_migrations table (Migrations plugin 5.x)
  • Migration now checks if cake_migrations exists and uses it with the plugin column filter
  • Falls back to queue_phinxlog for backwards compatibility

Context

The CakePHP Migrations plugin 5.x introduces a unified cake_migrations table that stores all migrations (app and plugins) in one place with a plugin column to distinguish between them. This replaces the legacy per-plugin phinxlog tables (e.g., queue_phinxlog).

This change ensures the Queue plugin migration works with both the old and new Migrations plugin versions.

Test plan

  • Verify migration works with Migrations plugin 4.x (legacy queue_phinxlog table)
  • Verify migration works with Migrations plugin 5.x (unified cake_migrations table)

🤖 Generated with Claude Code

Support both the legacy queue_phinxlog table (Migrations plugin 4.x)
and the new cake_migrations table (Migrations plugin 5.x).

The migration now checks if cake_migrations exists and uses it with
the plugin column filter, otherwise falls back to queue_phinxlog.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@dereuromark dereuromark marked this pull request as draft November 23, 2025 23:48
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.

2 participants