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)

Most upvoted comments

In case you have a tenancy.json file in your laravel root path, delete that and run php artisan tenancy:install. I hope that solves it.