Welcome Guest, Not a member yet? Register   Sign In
Generate migration file from existing database?
#4

(This post was last modified: 11-25-2020, 03:38 PM by InsiteFX.)

There is no migration command to create a migration from an existing database.

You would need to export it and manually convert it over to a migration file.

The command to create a blank migration file is:

php spark migrate:create [filename]


I have looked into this there is a utility for the Laravel  framework to do just that
To much trouble to write something like that just for a utility.

You can find it here:

Laravel Migrations Generator
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Generate migration file from existing database? - by InsiteFX - 11-25-2020, 03:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB