Skip to content

Issue with tenant:migrate:all Command in Laravel Multi-Tenant Application #10

Closed Answered by sachintha00
sasindu5309 asked this question in Q&A
Discussion options

You must be logged in to vote

To resolve the issue with the php artisan tenant:migrate:all command in your Laravel multi-tenant application, follow these steps:

1. Ensure PostgreSQL is being used

The Easy2Dev Laravel Tenant Migrate package is primarily designed for PostgreSQL databases. Double-check that you are using PostgreSQL for your tenant databases.

2. Database Prefix

The database prefix is the common part of the names of all tenant databases. For example, if your tenant databases are named like:

  • tenant_db1
  • tenant_abc2
  • tenant_xyz

The prefix in this case is tenant_. To migrate all tenant databases that share this prefix, use the following command:

php artisan tenant:migrate:all tenant_

This command applies migr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sasindu5309
Comment options

Answer selected by sasindu5309
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants