Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.33k stars 588 forks source link

'migrations' table was not updated #202

Open dordana opened 4 years ago

dordana commented 4 years ago

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.

jasperf commented 3 years ago

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.