migrations-generator icon indicating copy to clipboard operation
migrations-generator copied to clipboard

'migrations' table was not updated

Open dordana opened this issue 5 years ago • 1 comments

After I ran php artisan migrate:generate After running the command `php artisan migrate:generate`` the process created files for me but did not update the 'migrations' table in DB.

dordana avatar May 14 '20 13:05 dordana

That is true. It does not update the migrations table and so on next migration it will complain tables already exist as it seemingly never ran those migrations before.

In our case we replaced old migrations as after many new ones they did not work for new setups anymore. But now we can only run single migration files.

Genera migrations hang on table already exist and we do not want to overwrite, but we just want to skip. Not sure if there are solutions for that though.

jasperf avatar Mar 22 '21 23:03 jasperf