robmorgan/phinx — pull request #359 by zacek (2014-11-19 09:39:27+00:00)
Title: auto timestamp migration class names if auto_timestamp_class is set in configuration

This is implementation of the issue #306. I'm missing this feature too, it is even a blocker for me.

I've created a new configuration option named "auto_timestamp_class". When this is set to "yes", "true" or 1, the class name will be suffixed by the timestamp, which avoids conflict in names. If the configuration value is missing or "no", "false" or "0" it works as before (thus it is backward compatible)

I've chosen postfix instead of prefix because PHP class names must start with a letter or underscore.

I've also included a small fix to upper case the first letter of the migration name automatically, i.e. it is now equivalent
phinx create Abc
and
phinx create abc

This pull request is replacing #328