Get Tenant Migrations
Retrieve migration status for all tenants, showing pending migrations and database provider information.Authorization
RequiresPermissions.Multitenancy.View permission.
Response
Returns an array of tenant migration status objects.Unique tenant identifier
Tenant display name
Whether the tenant is currently active
Subscription expiration date
Whether there are unapplied database migrations
Database provider (e.g., “PostgreSQL”, “SqlServer”, “MySql”)
Name of the most recently applied migration
List of migration names that have not been applied
Error message if migration status check failed
Understanding Migration Status
No Pending Migrations
WhenhasPendingMigrations is false, the tenant’s database is up to date:
Pending Migrations
WhenhasPendingMigrations is true, the tenant needs database updates:
Migration Errors
If migration status cannot be determined, theerror field contains details:
Use Cases
Health Monitoring
Use this endpoint to monitor database health across all tenants:- Identify tenants with pending migrations
- Detect database connection issues
- Verify migration deployment success
Pre-Deployment Checks
Before deploying new application versions:- Check for pending migrations
- Apply migrations to test tenants first
- Monitor for errors
- Roll out to production tenants
Multi-Database Support
Theprovider field helps manage heterogeneous database environments:
- Track which tenants use which database providers
- Target provider-specific optimizations
- Plan database upgrades
This endpoint queries all tenant databases. Response time may increase with large numbers of tenants.
