Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create migration from existing database in Laravel 4

Is it possible to create a migration in Laravel 4 from an existing database?

like image 878
jeanfrg Avatar asked May 07 '14 10:05

jeanfrg


People also ask

What is difference between migrate fresh and refresh in Laravel?

Coming to Laravel 5.5 is an improvement on this with a new command named migrate:fresh . The difference between “refresh” and “fresh” is that the new fresh command skips all the down methods or the rollback by dropping the tables, then running through the up methods.


1 Answers

Here is the linked script, that does, what is asked here.

I also found this tool (actually a Gist code) and I highly prefer it for its simplicity.

like image 151
jeanfrg Avatar answered Sep 30 '22 13:09

jeanfrg