For me, the issue I had is that I would try to do php artisan migrate:install
which did create the table, however as soon as I did the php artisan migrate
without the install, it would drop the empty migration table and would be unable to create or move it up. To move past the impasse, I php artisan migrate --pretend
to get the first table's create table SQL, then I then added the first migration manually: insert into migrations( migration, batch ) values ('2014_10_12_000000_create_users_table','1');
and then confirmed with php artisan migrate:status
which showed that the first migration was successful.
$ php artisan migrate:status
Migration name .................................................................................................................... Batch / Status
2014_10_12_000000_create_users_table ..................................................................................................... [1] Ran
2014_10_12_100000_create_password_reset_tokens_table ..................................................................................... Pending
2019_08_19_000000_create_failed_jobs_table ............................................................................................... Pending
2019_12_14_000001_create_personal_access_tokens_table .................................................................................... Pending
Then the normal migration will succeed!