Artisan command php artisan migrate ruins migrations table

Viewed 41

Maybe someone has faced such a situation. Unfortunately, none of Stackoverflow's tips solve this. A clean project (I managed to register the routes only). With the php artisan migrate command, the migrations table is created and immediately dropped.

Error.

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'main.migrations' doesn't exist...

When I use php artisan migrate:install it creates a migration table (it is visible in migrate:status, it also appears in the database). But php artisan migrate ruins it again, same error.

Neither migrate:fresh, migrate:rollback, nor composer dumpautoload helped. I've been fighting all evening, nothing helps.

0 Answers
Related