No description
Find a file
2015-07-22 16:29:58 +02:00
LICENSE Initial commit 2015-05-07 11:05:46 +02:00
mysql2phinx.php Foreign key support 2015-07-21 23:25:59 +00:00
README.md Update README.md 2015-07-22 16:29:58 +02:00

MySQL2Phinx

A simple cli php script to generate a phinx migration from an existing MySQL database.

Usage

$ 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.

Caveat

The id column will be unsigned. Phinx does not currently supported unsigned primary columns. There is a workaround.

TODOs

Not all phinx functionality is covered! Check your migration code before use!

Currently not supported:

  • Column types:
    • float
    • decimal
    • time
    • binary
    • boolean