multi-tenant: Table 'hostnames' doesn't exist after migrate:reset
After running php artisan migrate:reset I get the following error whenever I try to run any artisan commands
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘overwatch.hostna
mes’ doesn’t exist (SQL: select * from hostnames where fqdn = localhost
limit 1) .
I guess that is because it tries to identify which database to load, but I can’t figure out how to fix it.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (9 by maintainers)
In case you have a
tenancy.jsonfile in your laravel root path, delete that and runphp artisan tenancy:install. I hope that solves it.