Generate migration file from existing database? |
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 )
|
Messages In This Thread |
Generate migration file from existing database? - by PwrSrg - 11-25-2020, 06:45 AM
RE: Generate migration file from existing database? - by php_rocs - 11-25-2020, 07:20 AM
RE: Generate migration file from existing database? - by PwrSrg - 11-25-2020, 07:36 AM
RE: Generate migration file from existing database? - by InsiteFX - 11-25-2020, 03:28 PM
RE: Generate migration file from existing database? - by includebeer - 11-25-2020, 04:21 PM
RE: Generate migration file from existing database? - by clsmedia - 04-23-2022, 04:29 AM
RE: Generate migration file from existing database? - by kenjis - 04-23-2022, 06:25 AM
RE: Generate migration file from existing database? - by Corsari - 06-19-2023, 11:21 PM
RE: Generate migration file from existing database? - by clsmedia - 04-23-2022, 07:49 AM
|