A simple cli php script to generate a phinx migration from an existing MySQL database.
$ php -f mysql2phinx.php [database] [user] [password] > migration.php
Will create an initial migration class in the file migration.php for all tables in the database passed.
The id column will be unsigned. Phinx does not currently supported unsigned primary columns. There is a workaround.
Not all phinx functionality is covered! Check your migration code before use!
Currently not supported:
- Column types:
-
float -
time -
binary -
boolean
-