Skip to content

Conversation

@dereuromark
Copy link
Member

Summary

  • When running migrations migrate -p SomePlugin on a plugin without a config/Migrations/ directory, the DumpCommand would fail with a file_put_contents error
  • Now DumpCommand checks if the migration path directory exists before attempting to write the lock file, and gracefully returns success with a verbose info message

Fixes #1008

When running migrations on a plugin without a migrations directory,
the DumpCommand would fail with a file_put_contents error. Now it
gracefully skips the dump with a verbose message instead.

Fixes #1008
@LordSimal
Copy link
Contributor

Can confirm this fixes my bug

@dereuromark
Copy link
Member Author

I targeted 4.x now, should this go into 5.x instead?

@LordSimal
Copy link
Contributor

well i use 5.x, but I believe this was also the case for 4.x

@dereuromark dereuromark merged commit 2c1f782 into 4.x Jan 27, 2026
13 checks passed
@dereuromark dereuromark deleted the fix/dump-missing-migrations-dir branch January 27, 2026 16:08
@dereuromark
Copy link
Member Author

I will merge it upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show a better message if a migration is being applied on a plugin which does not have migrations

3 participants