Add MigrateStatus command and corresponding tests#1460
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Is this not already achievable with the |
|
You are right, running this command you get the same result: php artisan tenants:run migrate:status it's only a shortcut. |
Adds a new Artisan command tenants:migrate-status that mirrors Laravel's built-in migrate:status, but runs against tenant databases. Useful for inspecting which migrations have already been applied (or are
still pending) for one or more tenants, without having to switch context manually.
Usage
All tenants
php artisan tenants:migrate-status
Specific tenant(s)
php artisan tenants:migrate-status --tenants=
php artisan tenants:migrate-status --tenants= --tenants=
For each tenant, the command prints a header line (Tenant: ) followed by the standard Laravel migration status table (Ran / Pending / Batch).