Skip to content

[Feature Request]: Automatically set tenant connection when using make:migration-tenant command #1207

@alaincodes24

Description

@alaincodes24

Preflight Checklist

Problem Description

When creating a migration using php artisan make:migration-tenant, the generated migration is expected to use the tenant database connection. However, the migration is created with the default connection (micropowermanager) instead.

This causes tenant-specific migrations to run against the wrong database unless manually updated.

Proposed Solution

Update the make:migration-tenant command to automatically set the $connection property in the generated migration file to tenant.

Alternatives Considered

N/A

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions