Phinx: how to generate migrations from an existing database

Created on 13 Apr 2016  路  6Comments  路  Source: cakephp/phinx

how to generate migrations from an existing database, including indexes and foreign keys?

docs

Most helpful comment

Hi! You could try to generate a migration with odan/phinx-migrations-generator

All 6 comments

I'm working on a script to extend https://github.com/gwa/MySQL2Phinx in an attempt to fully cover MySQL, and then probably PostGREs

Hi! You could try to generate a migration with odan/phinx-migrations-generator

Great work, @odan! Thank you so much!

You can link this in the docs maybe.

this is just what i was looking for :-D Is it able to create inserts for the existing data in the database?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

resgef picture resgef  路  5Comments

camohub picture camohub  路  5Comments

kabirbaidhya picture kabirbaidhya  路  4Comments

Divi picture Divi  路  5Comments

J-Fricke picture J-Fricke  路  3Comments