Skip to content

Add (initial) support for Dry run mode #867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: 4.next
Choose a base branch
from

Conversation

jamisonbryant
Copy link

At $MYJOB, we approach seeds a little differently. We have created a custom AppSeed that all seeds inherit from that only runs INSERT and UPDATE queries as needed, rather than the more typical DELETE ALL/INSERT style.

Like with migrations, we want the ability to be able to run seeds in dry-run mode, so we can see the queries that would run before executing them. This PR attempts to add this behavior to the plugin.

I added some new tests and they are MOSTLY passing (save for two, but seemingly for an unrelated reason). The ones that are outright failing are existing tests for reasons like "database is locked" which I'm unsure how to resolve. Any tips would be appreciated.

@jamisonbryant jamisonbryant marked this pull request as draft July 18, 2025 05:51
@jamisonbryant jamisonbryant changed the base branch from 4.x to 4.next July 18, 2025 05:58
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.

2 participants