Skip to content

Conversation

@dereuromark
Copy link
Member

Resolves #325

I gave claude.ai the following instructions

Can you make a fix out of https://github.com/cakephp/migrations/issues/325 proposal?

@ADmad What do you think?

In general this should probably be a flag/option of sorts, as this could be useful in both directions, and also for app (to exclude plugin ones?)

The test now works correctly by:
- Creating an initial migration to establish migration history
- Running the migration to create proper phinxlog entries
- Creating an empty schema dump for comparison
- Adjusting assertions to match the modern migration format

The test verifies that when using --plugin option, only tables with
corresponding Table classes in the plugin are included in the diff.
@dereuromark
Copy link
Member Author

should this target 4.next?

@ADmad
Copy link
Member

ADmad commented Aug 8, 2025

Just reading the code the filtering of the tables seems to similar to how it's done in migrations_snapshot command so LGTM.

Given the change in behavior it would be better to target this to 4.next, so maybe make it configurable.

@dereuromark dereuromark changed the base branch from 4.x to 4.next August 8, 2025 12:35
@markstory markstory merged commit 235d132 into 4.next Aug 9, 2025
13 checks passed
@markstory markstory deleted the 4.next-diff branch August 9, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect behavior when using "migration_diff" with "--plugin" option.

4 participants